aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Sandiford <richard@codesourcery.com>2007-03-15 21:27:55 +0000
committerRichard Sandiford <rsandifo@gcc.gnu.org>2007-03-15 21:27:55 +0000
commit71afac1da36c39729b20b4a1051fb58fd3d64419 (patch)
tree12e2177e025f9759bce6b0f2f004ebb3f612390f /gcc
parente6625c4411dca6960f7983a129b8dba6ae10e9b2 (diff)
downloadgcc-71afac1da36c39729b20b4a1051fb58fd3d64419.zip
gcc-71afac1da36c39729b20b4a1051fb58fd3d64419.tar.gz
gcc-71afac1da36c39729b20b4a1051fb58fd3d64419.tar.bz2
mmx1.C: Only use the PIC options for fpic targets.
gcc/testsuite/ * g++.dg/opt/mmx1.C: Only use the PIC options for fpic targets. * g++.old-deja/g++.other/store-expr1.C: Require fpic. From-SVN: r122960
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/ChangeLog5
-rw-r--r--gcc/testsuite/g++.dg/opt/mmx1.C2
-rw-r--r--gcc/testsuite/g++.old-deja/g++.other/store-expr1.C1
3 files changed, 7 insertions, 1 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index e11851c..94b5cf2 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,5 +1,10 @@
2007-03-15 Richard Sandiford <richard@codesourcery.com>
+ * g++.dg/opt/mmx1.C: Only use the PIC options for fpic targets.
+ * g++.old-deja/g++.other/store-expr1.C: Require fpic.
+
+2007-03-15 Richard Sandiford <richard@codesourcery.com>
+
* lib/target-supports.exp (check_missing_uclibc_feature)
(check_effective_target_wchar): New procedures.
* gcc.dg/wchar_t-1.c: Require target wchar.
diff --git a/gcc/testsuite/g++.dg/opt/mmx1.C b/gcc/testsuite/g++.dg/opt/mmx1.C
index 93e3fe7..7af0d01 100644
--- a/gcc/testsuite/g++.dg/opt/mmx1.C
+++ b/gcc/testsuite/g++.dg/opt/mmx1.C
@@ -3,7 +3,7 @@
// mmx -> mmx register moves.
// { dg-do compile }
// { dg-options "-O2" }
-// { dg-options "-fno-exceptions -O2 -mmmx -fPIC" { target { { i?86-*-* x86_64-*-* } && ilp32 } } }
+// { dg-options "-fno-exceptions -O2 -mmmx -fPIC" { target { { i?86-*-* x86_64-*-* } && { ilp32 && fpic } } } }
struct A {
unsigned a0;
diff --git a/gcc/testsuite/g++.old-deja/g++.other/store-expr1.C b/gcc/testsuite/g++.old-deja/g++.other/store-expr1.C
index c1b1953..5eb0d38 100644
--- a/gcc/testsuite/g++.old-deja/g++.other/store-expr1.C
+++ b/gcc/testsuite/g++.old-deja/g++.other/store-expr1.C
@@ -1,5 +1,6 @@
// { dg-do run { target i?86-*-* x86_64-*-* } }
// { dg-require-effective-target ilp32 }
+// { dg-require-effective-target fpic }
// { dg-options "-mtune=i686 -O2 -fpic" }
// { dg-bogus "\[Uu\]nresolved symbol .(_GLOBAL_OFFSET_TABLE_|\[_.A-Za-z\]\[_.0-9A-Za-z\]*@(PLT|GOT|GOTOFF))|\[Bb\]ad fixup at .DATA.:" "PIC unsupported" { xfail *-*-netware* } 0 }
class G {};