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]

[patch] Fix fails of gcc.dg/debug/dwarf2/dwarf-char[123].c


The enclosed change fixes the failures of the tests below on
hppa-unknown-linux-gnu.  The problem is the wrong assembler
comment character was used in the match strings of these tests.

Ok for trunk and 4.0.2.

Dave
-- 
J. David Anglin                                  dave.anglin@nrc-cnrc.gc.ca
National Research Council of Canada              (613) 990-0752 (FAX: 952-6602)

2005-09-04  John David  Anglin  <dave.anglin@nrc-cnrc.gc.ca>

	PR testsuite/23720
	* gcc.dg/debug/dwarf2/dwarf-char1.c (dg-final): Match any assembler
	comment character.
	* gcc.dg/debug/dwarf2/dwarf-char2.c (dg-final): Likewise.
	* gcc.dg/debug/dwarf2/dwarf-char3.c (dg-final): Likewise.

Index: gcc.dg/debug/dwarf2/dwarf-char1.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.dg/debug/dwarf2/dwarf-char1.c,v
retrieving revision 1.1
diff -u -3 -p -r1.1 dwarf-char1.c
--- gcc.dg/debug/dwarf2/dwarf-char1.c	1 Sep 2005 13:53:45 -0000	1.1
+++ gcc.dg/debug/dwarf2/dwarf-char1.c	3 Sep 2005 22:25:52 -0000
@@ -1,8 +1,8 @@
 /* PR debug/7241 */
 /* { dg-do compile } */
 /* { dg-options "-O2 -gdwarf-2 -dA" } */
-/* { dg-final { scan-assembler "0x\[68\]\[ \t\]# DW_AT_encoding" } } */
-/* { dg-final { scan-assembler-not "0x\[57\]\[ \t\]# DW_AT_encoding" } } */
+/* { dg-final { scan-assembler "0x\[68\]\[ \t\]. DW_AT_encoding" } } */
+/* { dg-final { scan-assembler-not "0x\[57\]\[ \t\]. DW_AT_encoding" } } */
 
 char a;
 const char b;
Index: gcc.dg/debug/dwarf2/dwarf-char2.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.dg/debug/dwarf2/dwarf-char2.c,v
retrieving revision 1.1
diff -u -3 -p -r1.1 dwarf-char2.c
--- gcc.dg/debug/dwarf2/dwarf-char2.c	1 Sep 2005 13:53:45 -0000	1.1
+++ gcc.dg/debug/dwarf2/dwarf-char2.c	3 Sep 2005 22:25:52 -0000
@@ -1,8 +1,8 @@
 /* PR debug/7241 */
 /* { dg-do compile } */
 /* { dg-options "-O2 -gdwarf-2 -dA" } */
-/* { dg-final { scan-assembler "0x\[68\]\[ \t\]# DW_AT_encoding" } } */
-/* { dg-final { scan-assembler-not "0x\[57\]\[ \t\]# DW_AT_encoding" } } */
+/* { dg-final { scan-assembler "0x\[68\]\[ \t\]. DW_AT_encoding" } } */
+/* { dg-final { scan-assembler-not "0x\[57\]\[ \t\]. DW_AT_encoding" } } */
 
 const char a;
 char b;
Index: gcc.dg/debug/dwarf2/dwarf-char3.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.dg/debug/dwarf2/dwarf-char3.c,v
retrieving revision 1.1
diff -u -3 -p -r1.1 dwarf-char3.c
--- gcc.dg/debug/dwarf2/dwarf-char3.c	1 Sep 2005 13:53:45 -0000	1.1
+++ gcc.dg/debug/dwarf2/dwarf-char3.c	3 Sep 2005 22:25:52 -0000
@@ -1,7 +1,7 @@
 /* PR debug/7241 */
 /* { dg-do compile } */
 /* { dg-options "-O2 -gdwarf-2 -dA" } */
-/* { dg-final { scan-assembler "0x\[68\]\[ \t\]# DW_AT_encoding" } } */
-/* { dg-final { scan-assembler-not "0x\[57\]\[ \t\]# DW_AT_encoding" } } */
+/* { dg-final { scan-assembler "0x\[68\]\[ \t\]. DW_AT_encoding" } } */
+/* { dg-final { scan-assembler-not "0x\[57\]\[ \t\]. DW_AT_encoding" } } */
 
 const char *p = "abc";


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