This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[RFA] Fix c++/debug test suite suite breakage on darwin


Hello,

On Darwin the option -fno-merge-debug-strings is activated by default,
probably because the assembler or linker cannot merge together identical
debug info strings.
On other platforms however, debug info string merging is activated by default.

This leads to some differences in assembly output that can make pattern
matching (like with dejagnu directive scan-assembler) fail on Darwin where
it succeeds on other platforms. The particular offending tests I am talking
about are g++.dg/debug/dwarf/* at
http://gcc.gnu.org/ml/gcc-testresults/2009-09/msg00563.html

The attached patch sets -fno-merge-debug-strings in some offending tests
and adapts the pattern matching accordingly.

Tested against trunk on x86_64-unknown-linux-gnu and *-*-darwin* .

OK to commit ?

Thanks.

-- 
Dodji Seketeli
Red Hat, Inc.

Attachment: unbreak-darwin-patch-v1.txt
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]