This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[committed] Fix PR testsuite/40858
- From: "John David Anglin" <dave at hiauly1 dot hia dot nrc dot ca>
- To: gcc-patches at gcc dot gnu dot org
- Date: Mon, 3 Aug 2009 13:36:29 -0400 (EDT)
- Subject: [committed] Fix PR testsuite/40858
The HP linker doesn't support the merging of strings in the string section.
In that case, certain DW_AT_name's are output directly with .ascii
directives. The enclosed change modifies the match string to additionally
match the output used with .ascii.
Tested on hppa-unknown-linux-gnu (supports string merging) and
hppa64-hp-hpux11.11. Committed to trunk.
Dave
--
J. David Anglin dave.anglin@nrc-cnrc.gc.ca
National Research Council of Canada (613) 990-0752 (FAX: 952-6602)
2009-08-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
PR testsuite/40858
* g++.dg/debug/dwarf2/typedef1.C: Also match assembler string used with
.ascii.
Index: g++.dg/debug/dwarf2/typedef1.C
===================================================================
--- g++.dg/debug/dwarf2/typedef1.C (revision 150317)
+++ g++.dg/debug/dwarf2/typedef1.C (working copy)
@@ -3,9 +3,9 @@
// { dg-options "-g -dA" }
// { dg-do compile }
// { dg-final { scan-assembler-times "DW_TAG_structure_type" 2 } }
-// { dg-final { scan-assembler-times "DW_AT_name: \"foo<1u>\"" 1 } }
+// { dg-final { scan-assembler-times "DW_AT_name: \"foo<1u>\"|\"foo<1u>..\".*DW_AT_name" 1 } }
// { dg-final { scan-assembler-times "DW_TAG_enumeration_type" 2 } }
-// { dg-final { scan-assembler-times "DW_AT_name: \"typedef foo<1u>::type type\"" 1 } }
+// { dg-final { scan-assembler-times "DW_AT_name: \"typedef foo<1u>::type type\"|\"typedef foo<1u>::type type..\".*DW_AT_name" 1 } }
// { dg-final { scan-assembler-times "DIE (.*) DW_TAG_enumeration_type" 2 } }
// { dg-final { scan-assembler-times "\"e0..\".*DW_AT_name" 1 } }
// { dg-final { scan-assembler-times "\"e1..\".*DW_AT_name" 1 } }