[Bug bootstrap/59447] New: --with-dwarf2 is not propagated correctly, will always create dwarf4 by default

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

[Bug bootstrap/59447] New: --with-dwarf2 is not propagated correctly, will always create dwarf4 by default

kargl at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59447

            Bug ID: 59447
           Summary: --with-dwarf2 is not propagated correctly, will always
                    create dwarf4 by default
           Product: gcc
           Version: 4.8.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: bootstrap
          Assignee: unassigned at gcc dot gnu.org
          Reporter: rose.garcia-eggl2fk at yopmail dot com

even if one manages that --with-dwarf2 gets properly redirected to
gcc/configure from the toplevel configure script ( i used

        GCC_DWARF_CONFFLAGS="--with-dwarf2=yes" ;
        export host_configargs="$GCC_DWARF_CONFFLAGS" ;
        export target_configargs="$GCC_DWARF_CONFFLAGS" ;
        export build_configargs="$GCC_DWARF_CONFFLAGS" ;

plus i passed it to top-level configure), gcc will still default to DWARF4, and
all created binaries will have dwarf4 debug info, unless -gdwarf-2 was passed
explicitly on the command line.

the culprit is this line
gcc-4.8.2/gcc/common.opt:Common Joined UInteger Var(dwarf_version) Init(4)
Negative(gstabs)

introduced in commit
http://repo.or.cz/w/official-gcc.git/commitdiff/052166fd4a8051c7dc4c87d408be091c99aafd55

note that even the command below still talks about dwarf2.
i see nothing in the build system that would fill in the required 2 here
instead of the 4, and indeed the generated options.c has dwarf_version = 4 in
it.
Reply | Threaded
Open this post in threaded view
|

[Bug bootstrap/59447] --with-dwarf2 is not propagated correctly, will always create dwarf4 by default

kargl at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59447

--- Comment #1 from joseph at codesourcery dot com <joseph at codesourcery dot com> ---
This is a documentation bug - the installation manual should make clear
that "DWARF 2" in the description of this option means DWARF 2 or later,
as appropriate for the target, as opposed to (for example) STABS.
Reply | Threaded
Open this post in threaded view
|

[Bug bootstrap/59447] --with-dwarf2 is not propagated correctly, will always create dwarf4 by default

kargl at gcc dot gnu.org
In reply to this post by kargl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59447

Eric Gallager <egallager at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-09-07
     Ever confirmed|0                           |1

--- Comment #2 from Eric Gallager <egallager at gcc dot gnu.org> ---
(In reply to [hidden email] from comment #1)
> This is a documentation bug - the installation manual should make clear
> that "DWARF 2" in the description of this option means DWARF 2 or later,
> as appropriate for the target, as opposed to (for example) STABS.

Confirmed, the documentation for --with-dwarf2 is still just:

--with-dwarf2

    Specify that the compiler should use DWARF 2 debugging information as the
default.
Reply | Threaded
Open this post in threaded view
|

[Bug bootstrap/59447] --with-dwarf2 should be documented as meaning "DWARF 2 or later" instead of just "DWARF 2"

kargl at gcc dot gnu.org
In reply to this post by kargl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59447

Eric Gallager <egallager at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|--with-dwarf2 is not        |--with-dwarf2 should be
                   |propagated correctly, will  |documented as meaning
                   |always create dwarf4 by     |"DWARF 2 or later" instead
                   |default                     |of just "DWARF 2"

--- Comment #3 from Eric Gallager <egallager at gcc dot gnu.org> ---
(In reply to Eric Gallager from comment #2)

> (In reply to [hidden email] from comment #1)
> > This is a documentation bug - the installation manual should make clear
> > that "DWARF 2" in the description of this option means DWARF 2 or later,
> > as appropriate for the target, as opposed to (for example) STABS.
>
> Confirmed, the documentation for --with-dwarf2 is still just:
>
> --with-dwarf2
>
>     Specify that the compiler should use DWARF 2 debugging information as
> the default.

Updating title to reflect the actual issue
Reply | Threaded
Open this post in threaded view
|

[Bug bootstrap/59447] --with-dwarf2 should be documented as meaning "DWARF 2 or later" instead of just "DWARF 2"

kargl at gcc dot gnu.org
In reply to this post by kargl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59447

Eric Gallager <egallager at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |sandra at codesourcery dot com

--- Comment #4 from Eric Gallager <egallager at gcc dot gnu.org> ---
Sandra, if you're going thru documentation bugs by date last modified, this one
might not show up as "old" even though it is actually old (only recent activity
has been me confirming and retitling it)