This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug debug/50816] [4.6.1] Discriminators are emitted in DWARF 2 format
- From: "anitha.boyapati at atmel dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 25 Oct 2011 02:31:12 +0000
- Subject: [Bug debug/50816] [4.6.1] Discriminators are emitted in DWARF 2 format
- Auto-submitted: auto-generated
- References: <bug-50816-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50816
--- Comment #10 from Anitha Boyapati <anitha.boyapati at atmel dot com> 2011-10-25 02:31:12 UTC ---
(In reply to comment #9)
> Author: jakub
> Date: Mon Oct 24 18:09:21 2011
> New Revision: 180398
>
> URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=180398
> Log:
> PR debug/50816
> * dwarf2out.c (dwarf2out_source_line): Emit discriminators only if
> -gdwarf-4 or not -gstrict-dwarf.
>
> Modified:
> branches/gcc-4_6-branch/gcc/ChangeLog
> branches/gcc-4_6-branch/gcc/dwarf2out.c
Thanks Jakub. I thought this suffices:
http://gcc.gnu.org/viewcvs/trunk/gcc/dwarf2out.c?r1=171846&r2=171852&diff_format=h
This however requires us to use -gstrict-dwarf option.