This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug driver/57238] GCC passes --gdwarf2 to assembler despite -gdwarf-4 on command line
- From: "ppluzhnikov at google dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 10 May 2013 16:43:09 +0000
- Subject: [Bug driver/57238] GCC passes --gdwarf2 to assembler despite -gdwarf-4 on command line
- Auto-submitted: auto-generated
- References: <bug-57238-4 at http dot gcc dot gnu dot org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57238
--- Comment #3 from Paul Pluzhnikov <ppluzhnikov at google dot com> ---
(In reply to Andrew Pinski from comment #2)
> I don't see how this is wrong.
It's wrong to emit dwarf2 because I asked for dwarf4 explicitly.
> Mixing dwarf4 and dwarf2 should be ok.
Ok for what?
One of the reasons I ask for dwarf4 is to save on repeated DW_AT_comp_dir
strings (which could be quite long). Currently, I do get them merged for all .c
and .cc compoilation units, but not for any .s units. That seems broken to me.