[testsuite patch]: scan for .global in additon to .globl

Kaveh R. Ghazi ghazi@caipclassic.rutgers.edu
Sat Dec 24 22:28:00 GMT 2005


Some assembler dialects use .global instead of .globl, right?

Tested via 4.0 "make check" on i686-unknown-linux-gnu.

Okay for 3.4/4.0/4.1/mainline?

		Thanks,
		--Kaveh

2005-12-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>

	* g++.dg/rtti/tinfo1.C: Scan for ".global" also.

diff -rup orig/egcc-4.0-SVN20051223/gcc/testsuite/g++.dg/rtti/tinfo1.C egcc-4.0-SVN20051223/gcc/testsuite/g++.dg/rtti/tinfo1.C
--- orig/egcc-4.0-SVN20051223/gcc/testsuite/g++.dg/rtti/tinfo1.C	2005-11-03 10:42:57.000000000 -0500
+++ egcc-4.0-SVN20051223/gcc/testsuite/g++.dg/rtti/tinfo1.C	2005-12-24 10:37:38.000000000 -0500
@@ -1,7 +1,7 @@
 // Test if a local definition is in a linkonce/comdat section.
 // { dg-do compile }
 // { dg-final { scan-assembler "_ZTIP9CTemplateIhE\[: \t\n\]" } }
-// { dg-final { scan-assembler-not ".globl\[ 	\]+_ZTIP9CTemplateIhE" } }
+// { dg-final { scan-assembler-not "(.globl|.global)\[ 	\]+_ZTIP9CTemplateIhE" } }
 // { dg-final { scan-assembler-not ".section\[^\n\r\]*_ZTIP9CTemplateIhE\[^\n\r\]*" } }
 
 



More information about the Gcc-patches mailing list