public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug bootstrap/59447] New: --with-dwarf2 is not propagated correctly, will always create dwarf4 by default
@ 2013-12-10 11:58 rose.garcia-eggl2fk at yopmail dot com
  2013-12-10 17:33 ` [Bug bootstrap/59447] " joseph at codesourcery dot com
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: rose.garcia-eggl2fk at yopmail dot com @ 2013-12-10 11:58 UTC (permalink / raw)
  To: gcc-bugs

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.


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2022-12-02  6:18 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-12-10 11:58 [Bug bootstrap/59447] New: --with-dwarf2 is not propagated correctly, will always create dwarf4 by default rose.garcia-eggl2fk at yopmail dot com
2013-12-10 17:33 ` [Bug bootstrap/59447] " joseph at codesourcery dot com
2022-01-06  0:34 ` [Bug bootstrap/59447] --with-dwarf2 should be documented as meaning "DWARF 2 or later" instead of just "DWARF 2" pinskia at gcc dot gnu.org
2022-01-06  0:36 ` pinskia at gcc dot gnu.org
2022-12-01  1:44 ` pinskia at gcc dot gnu.org
2022-12-01 20:03 ` egallager at gcc dot gnu.org
2022-12-02  3:30 ` egallager at gcc dot gnu.org
2022-12-02  6:16 ` cvs-commit at gcc dot gnu.org
2022-12-02  6:18 ` egallager at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).