[patch] Do not generate discriminator directive in strict mode

Eric Botcazou ebotcazou@adacore.com
Tue Apr 19 14:10:00 GMT 2011


Hi,

it appears that the (standard DWARF as of version 4) discriminator directive 
can confuse non-GDB DWARF 2/3 debuggers, so this patch changes the compiler 
to stop emitting it in strict mode.

Tested on i586-suse-linux, OK for the mainline?


2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>

	* dwarf2out.c (dwarf2out_source_line): Emit "discriminator" directive
	only for version 4 or above, or else in non-strict mode.


-- 
Eric Botcazou
-------------- next part --------------
A non-text attachment was scrubbed...
Name: p.diff
Type: text/x-diff
Size: 645 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20110419/ad33edc5/attachment.bin>


More information about the Gcc-patches mailing list