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]

[testsuite] Fix ipa-pta-1.c and alias-2.c with --target_board=unix/-fpic (PR testsuite/38261)


Hi!

I'm committing this as obvious, these fail to match (expectedly) since
http://gcc.gnu.org/ml/gcc-patches/2008-11/msg00727.html fix,
for -fpic/-fPIC (or when defaulting to pic) GCC shouldn't assume anything
about the called functions, as they could be overridden and behave
differently.

2008-11-28  Jakub Jelinek  <jakub@redhat.com>

	PR testsuite/38261
	* gcc.dg/tree-ssa/alias-2.c: Only compile on nonpic targets.
	* gcc.dg/torture/ipa-pta-1.c: Likewise.

--- gcc/testsuite/gcc.dg/tree-ssa/alias-2.c.jj	2008-09-30 16:54:42.000000000 +0200
+++ gcc/testsuite/gcc.dg/tree-ssa/alias-2.c	2008-11-28 11:02:27.000000000 +0100
@@ -1,3 +1,4 @@
+/* { dg-do compile { target { nonpic } } } */
 /* { dg-options "-O2 -fdump-tree-optimized" } */
 static int a;
 int f;
--- gcc/testsuite/gcc.dg/torture/ipa-pta-1.c.jj	2008-09-30 16:54:36.000000000 +0200
+++ gcc/testsuite/gcc.dg/torture/ipa-pta-1.c	2008-11-28 11:00:45.000000000 +0100
@@ -1,4 +1,4 @@
-/* { dg-do compile } */
+/* { dg-do compile { target { nonpic } } } */
 /* { dg-options "-fipa-pta -fdump-ipa-pta" } */
 /* { dg-skip-if "" { *-*-* } { "-O0" } { "" } } */
 

	Jakub


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