From patchwork Mon Aug 16 23:32:14 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: PR debug/42487, xfail scan-assembler on DW_AT_ranges in gcc.dg/debug/dwarf2/aranges-fnsec-1.c for darwin Date: Mon, 16 Aug 2010 13:32:14 -0000 From: Jack Howarth X-Patchwork-Id: 61846 Message-Id: <20100816233214.GA16983@bromo.med.uc.edu> To: gcc-patches@gcc.gnu.org Cc: mikestump@comcast.net The scan-assembler on "DW_AT_ranges" in gcc.dg/debug/dwarf2/aranges-fnsec-1.c should be xfail'd on darwin since that target doesn't support -ffunction-sections. Tested on x86_64-apple-darwin10. Okay for gcc trunk and 4.5.2? Jack 2010-08-16 Jack Howarth PR debug/42487 * gcc.dg/debug/dwarf2/aranges-fnsec-1.c (scan-assembler "DW_AT_ranges"): xfail *-*-darwin*. Index: gcc/testsuite/gcc.dg/debug/dwarf2/aranges-fnsec-1.c =================================================================== --- gcc/testsuite/gcc.dg/debug/dwarf2/aranges-fnsec-1.c (revision 163286) +++ gcc/testsuite/gcc.dg/debug/dwarf2/aranges-fnsec-1.c (working copy) @@ -5,7 +5,7 @@ /* { dg-options "-gdwarf-2 -ffunction-sections -w -dA" } */ /* { dg-final { scan-assembler-not "\\.Letext0-\\.Ltext0" } } */ /* { dg-final { scan-assembler-not "\\.Ltext0\[^\n\r\]*Offset 0x0" } } */ -/* { dg-final { scan-assembler "DW_AT_ranges" } } */ +/* { dg-final { scan-assembler "DW_AT_ranges" { xfail *-*-darwin* } } } */ int f (void)