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 g++.dg/opt/inline[46].C fails on PA


g++.dg/opt/inline[46].C fail on the PA because of the early emission
of .IMPORT directives.  The enclosed patch robustifies the regular
expressions used in the tests so that we only accept labels.  The same
approach was used in <http://gcc.gnu.org/ml/gcc-patches/2004-02/msg01630.html>
to fix g++.dg/opt/template1.C.

The regexps used in the patch match the symbols from the .IMPORT directives
that contain "_Z1g" and "foo", respectively.

The patch needs to be applied to 3.3, 3.4 and 3.5.  Ok?

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

2004-02-25  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>

	* g++.dg/opt/inline4.C (dg-final): Robustify regexp.
	* g++.dg/opt/inline6.C (dg-final): Robustify regexp.

Index: g++.dg/opt/inline4.C
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/g++.dg/opt/inline4.C,v
retrieving revision 1.3
diff -u -3 -p -r1.3 inline4.C
--- g++.dg/opt/inline4.C	20 Oct 2003 21:46:54 -0000	1.3
+++ g++.dg/opt/inline4.C	21 Feb 2004 21:24:22 -0000
@@ -10,4 +10,4 @@ void h() {
   g<250>();
 }
 
-// { dg-final { scan-assembler-not "_Z1g"  } }
+// { dg-final { scan-assembler-not "\n_?_Z1gILi\[0-9\]+EEvv\[: \t\n\]"  } }
Index: g++.dg/opt/inline6.C
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/g++.dg/opt/inline6.C,v
retrieving revision 1.1
diff -u -3 -p -r1.1 inline6.C
--- g++.dg/opt/inline6.C	29 Dec 2003 02:42:17 -0000	1.1
+++ g++.dg/opt/inline6.C	21 Feb 2004 21:24:22 -0000
@@ -1,6 +1,6 @@
 // PR c++/13081
 // { dg-options "-O2" }
-// { dg-final { scan-assembler-not "foo" } }
+// { dg-final { scan-assembler-not "\n_?_Z3fooIlET_S0_\[: \t\n\]" } }
 
 template<typename T> T foo(T);
  


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