aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/testsuite/ChangeLog84
-rw-r--r--gcc/testsuite/g++.dg/abi/bitfield3.C1
-rw-r--r--gcc/testsuite/g++.dg/abi/bitfield8.C1
-rw-r--r--gcc/testsuite/g++.dg/abi/dtor1.C1
-rw-r--r--gcc/testsuite/g++.dg/abi/empty10.C1
-rw-r--r--gcc/testsuite/g++.dg/abi/empty7.C1
-rw-r--r--gcc/testsuite/g++.dg/abi/empty9.C1
-rw-r--r--gcc/testsuite/g++.dg/abi/layout3.C1
-rw-r--r--gcc/testsuite/g++.dg/abi/layout4.C1
-rw-r--r--gcc/testsuite/g++.dg/abi/thunk1.C1
-rw-r--r--gcc/testsuite/g++.dg/abi/thunk2.C1
-rw-r--r--gcc/testsuite/g++.dg/abi/vbase11.C1
-rw-r--r--gcc/testsuite/g++.dg/abi/vthunk2.C1
-rw-r--r--gcc/testsuite/g++.dg/abi/vthunk3.C1
-rw-r--r--gcc/testsuite/g++.dg/ext/attrib8.C1
-rw-r--r--gcc/testsuite/g++.dg/opt/longbranch2.C1
-rw-r--r--gcc/testsuite/g++.dg/opt/reg-stack4.C1
-rw-r--r--gcc/testsuite/g++.old-deja/g++.ext/attrib1.C1
-rw-r--r--gcc/testsuite/g++.old-deja/g++.ext/attrib2.C1
-rw-r--r--gcc/testsuite/g++.old-deja/g++.ext/attrib3.C1
-rw-r--r--gcc/testsuite/g++.old-deja/g++.other/store-expr1.C1
-rw-r--r--gcc/testsuite/g++.old-deja/g++.other/store-expr2.C1
-rw-r--r--gcc/testsuite/gcc.c-torture/execute/20010129-1.x11
-rw-r--r--gcc/testsuite/gcc.dg/20000609-1.c1
-rw-r--r--gcc/testsuite/gcc.dg/20000720-1.c1
-rw-r--r--gcc/testsuite/gcc.dg/20011107-1.c1
-rw-r--r--gcc/testsuite/gcc.dg/20011119-1.c1
-rw-r--r--gcc/testsuite/gcc.dg/20020108-1.c1
-rw-r--r--gcc/testsuite/gcc.dg/20020122-2.c1
-rw-r--r--gcc/testsuite/gcc.dg/20020122-3.c1
-rw-r--r--gcc/testsuite/gcc.dg/20020201-3.c1
-rw-r--r--gcc/testsuite/gcc.dg/20020206-1.c1
-rw-r--r--gcc/testsuite/gcc.dg/20020218-1.c1
-rw-r--r--gcc/testsuite/gcc.dg/20020310-1.c1
-rw-r--r--gcc/testsuite/gcc.dg/20020411-1.c1
-rw-r--r--gcc/testsuite/gcc.dg/20020418-2.c1
-rw-r--r--gcc/testsuite/gcc.dg/20020426-1.c1
-rw-r--r--gcc/testsuite/gcc.dg/20020426-2.c1
-rw-r--r--gcc/testsuite/gcc.dg/20020517-1.c1
-rw-r--r--gcc/testsuite/gcc.dg/20020523-1.c1
-rw-r--r--gcc/testsuite/gcc.dg/20020523-2.c1
-rw-r--r--gcc/testsuite/gcc.dg/20020729-1.c1
-rw-r--r--gcc/testsuite/gcc.dg/20030204-1.c1
-rw-r--r--gcc/testsuite/gcc.dg/20030826-2.c1
-rw-r--r--gcc/testsuite/gcc.dg/20030926-1.c1
-rw-r--r--gcc/testsuite/gcc.dg/20031202-1.c1
-rw-r--r--gcc/testsuite/gcc.dg/980312-1.c1
-rw-r--r--gcc/testsuite/gcc.dg/980313-1.c1
-rw-r--r--gcc/testsuite/gcc.dg/990117-1.c1
-rw-r--r--gcc/testsuite/gcc.dg/990424-1.c1
-rw-r--r--gcc/testsuite/gcc.dg/990524-1.c1
-rw-r--r--gcc/testsuite/gcc.dg/991230-1.c1
-rw-r--r--gcc/testsuite/gcc.dg/i386-387-1.c1
-rw-r--r--gcc/testsuite/gcc.dg/i386-387-2.c1
-rw-r--r--gcc/testsuite/gcc.dg/i386-387-3.c1
-rw-r--r--gcc/testsuite/gcc.dg/i386-387-4.c1
-rw-r--r--gcc/testsuite/gcc.dg/i386-387-5.c1
-rw-r--r--gcc/testsuite/gcc.dg/i386-387-6.c1
-rw-r--r--gcc/testsuite/gcc.dg/i386-asm-1.c1
-rw-r--r--gcc/testsuite/gcc.dg/i386-bitfield1.c1
-rw-r--r--gcc/testsuite/gcc.dg/i386-bitfield2.c1
-rw-r--r--gcc/testsuite/gcc.dg/i386-loop-1.c1
-rw-r--r--gcc/testsuite/gcc.dg/i386-loop-2.c1
-rw-r--r--gcc/testsuite/gcc.dg/i386-loop-3.c1
-rw-r--r--gcc/testsuite/gcc.dg/i386-pentium4-not-mull.c1
-rw-r--r--gcc/testsuite/gcc.dg/i386-pic-1.c1
-rw-r--r--gcc/testsuite/gcc.dg/i386-regparm.c1
-rw-r--r--gcc/testsuite/gcc.dg/i386-signbit-1.c1
-rw-r--r--gcc/testsuite/gcc.dg/i386-signbit-2.c1
-rw-r--r--gcc/testsuite/gcc.dg/i386-signbit-3.c1
-rw-r--r--gcc/testsuite/gcc.dg/i386-sse-5.c1
-rw-r--r--gcc/testsuite/gcc.dg/i386-sse-8.c1
-rw-r--r--gcc/testsuite/gcc.dg/i386-unroll-1.c1
-rw-r--r--gcc/testsuite/gcc.dg/tls/opt-1.c1
-rw-r--r--gcc/testsuite/gcc.dg/tls/opt-2.c1
-rw-r--r--gcc/testsuite/gcc.dg/unroll-1.c1
-rw-r--r--gcc/testsuite/gcc.misc-tests/i386-pf-3dnow-1.c1
-rw-r--r--gcc/testsuite/gcc.misc-tests/i386-pf-athlon-1.c1
-rw-r--r--gcc/testsuite/gcc.misc-tests/i386-pf-none-1.c1
-rw-r--r--gcc/testsuite/gcc.misc-tests/i386-pf-sse-1.c1
-rw-r--r--gcc/testsuite/lib/gcc-dg.exp31
81 files changed, 203 insertions, 1 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 10bac62..a2d6a24 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,87 @@
+2004-11-12 Mark Mitchell <mark@codesourcery.com>
+
+ * lib/gcc-dg.exp (dg-forbid-option): New function.
+ * g++.dg/abi/bitfield3.C: Use dg-forbid-option -m64.
+ * g++.dg/abi/bitfield8.C: Likewise.
+ * g++.dg/abi/dtor1.C: Likewise.
+ * g++.dg/abi/empty10.C: Likewise.
+ * g++.dg/abi/empty7.C: Likewise.
+ * g++.dg/abi/empty9.C: Likewise.
+ * g++.dg/abi/layout3.C: Likewise.
+ * g++.dg/abi/layout4.C: Likewise.
+ * g++.dg/abi/thunk1.C: Likewise.
+ * g++.dg/abi/thunk2.C: Likewise.
+ * g++.dg/abi/vbase11.C: Likewise.
+ * g++.dg/abi/vthunk2.C: Likewise.
+ * g++.dg/abi/vthunk3.C: Likewise.
+ * g++.dg/ext/attrib8.C: Likewise.
+ * g++.dg/opt/longbranch2.C: Likewise.
+ * g++.dg/opt/reg-stack4.C: Likewise.
+ * g++.old-deja/g++.ext/attrib1.C: Likewise.
+ * g++.old-deja/g++.ext/attrib2.C: Likewise.
+ * g++.old-deja/g++.ext/attrib3.C: Likewise.
+ * g++.old-deja/g++.other/store-expr1.C: Likewise.
+ * g++.old-deja/g++.other/store-expr2.C: Likewise.
+ * gcc.dg/20000609-1.c: Likewise.
+ * gcc.dg/20000720-1.c: Likewise.
+ * gcc.dg/20011107-1.c: Likewise.
+ * gcc.dg/20011119-1.c: Likewise.
+ * gcc.dg/20020108-1.c: Likewise.
+ * gcc.dg/20020122-2.c: Likewise.
+ * gcc.dg/20020122-3.c: Likewise.
+ * gcc.dg/20020201-3.c: Likewise.
+ * gcc.dg/20020206-1.c: Likewise.
+ * gcc.dg/20020218-1.c: Likewise.
+ * gcc.dg/20020310-1.c: Likewise.
+ * gcc.dg/20020411-1.c: Likewise.
+ * gcc.dg/20020418-2.c: Likewise.
+ * gcc.dg/20020426-1.c: Likewise.
+ * gcc.dg/20020426-2.c: Likewise.
+ * gcc.dg/20020517-1.c: Likewise.
+ * gcc.dg/20020523-1.c: Likewise.
+ * gcc.dg/20020523-2.c: Likewise.
+ * gcc.dg/20020729-1.c: Likewise.
+ * gcc.dg/20030204-1.c: Likewise.
+ * gcc.dg/20030826-2.c: Likewise.
+ * gcc.dg/20030926-1.c: Likewise.
+ * gcc.dg/20031202-1.c: Likewise.
+ * gcc.dg/980312-1.c: Likewise.
+ * gcc.dg/980313-1.c: Likewise.
+ * gcc.dg/990117-1.c: Likewise.
+ * gcc.dg/990424-1.c: Likewise.
+ * gcc.dg/990524-1.c: Likewise.
+ * gcc.dg/991230-1.c: Likewise.
+ * gcc.dg/i386-387-1.c: Likewise.
+ * gcc.dg/i386-387-2.c: Likewise.
+ * gcc.dg/i386-387-3.c: Likewise.
+ * gcc.dg/i386-387-4.c: Likewise.
+ * gcc.dg/i386-387-5.c: Likewise.
+ * gcc.dg/i386-387-6.c: Likewise.
+ * gcc.dg/i386-asm-1.c: Likewise.
+ * gcc.dg/i386-bitfield1.c: Likewise.
+ * gcc.dg/i386-bitfield2.c: Likewise.
+ * gcc.dg/i386-loop-1.c: Likewise.
+ * gcc.dg/i386-loop-2.c: Likewise.
+ * gcc.dg/i386-loop-3.c: Likewise.
+ * gcc.dg/i386-pentium4-not-mull.c: Likewise.
+ * gcc.dg/i386-pic-1.c: Likewise.
+ * gcc.dg/i386-regparm.c: Likewise.
+ * gcc.dg/i386-signbit-1.c: Likewise.
+ * gcc.dg/i386-signbit-2.c: Likewise.
+ * gcc.dg/i386-signbit-3.c: Likewise.
+ * gcc.dg/i386-sse-5.c: Likewise.
+ * gcc.dg/i386-sse-8.c: Likewise.
+ * gcc.dg/i386-unroll-1.c: Likewise.
+ * gcc.dg/tls/opt-1.c: Likewise.
+ * gcc.dg/tls/opt-2.c: Likewise.
+ * gcc.dg/unroll-1.c: Likewise.
+ * gcc.misc-tests/i386-pf-3dnow-1.c: Likewise.
+ * gcc.misc-tests/i386-pf-athlon-1.c: Likewise.
+ * gcc.misc-tests/i386-pf-none-1.c: Likewise.
+ * gcc.misc-tests/i386-pf-sse-1.c: Likewise.
+ * gcc.c-torture/execute/20010129-1.x: Do not use -mtune=i686 when
+ -m64 is specified.
+
2004-11-12 Mark Mitchell <mark@codesourcery.com>
PR c++/18389
diff --git a/gcc/testsuite/g++.dg/abi/bitfield3.C b/gcc/testsuite/g++.dg/abi/bitfield3.C
index 5eefe97..5ff310b 100644
--- a/gcc/testsuite/g++.dg/abi/bitfield3.C
+++ b/gcc/testsuite/g++.dg/abi/bitfield3.C
@@ -4,6 +4,7 @@
// Cygwin and mingw32 default to MASK_ALIGN_DOUBLE. Override to ensure
// 4-byte alignment.
// { dg-options "-mno-align-double" { target i?86-*-cygwin* i?86-*-mingw* } }
+// { dg-forbid-option "-m64" }
struct A
{
diff --git a/gcc/testsuite/g++.dg/abi/bitfield8.C b/gcc/testsuite/g++.dg/abi/bitfield8.C
index 8195fda..64ec0f7 100644
--- a/gcc/testsuite/g++.dg/abi/bitfield8.C
+++ b/gcc/testsuite/g++.dg/abi/bitfield8.C
@@ -1,5 +1,6 @@
// { dg-do run { target i?86-*-* } }
// { dg-options "-fabi-version=0" }
+// { dg-forbid-option "-m64" }
struct A {
virtual void f() {}
diff --git a/gcc/testsuite/g++.dg/abi/dtor1.C b/gcc/testsuite/g++.dg/abi/dtor1.C
index 48b0a55..429b39e 100644
--- a/gcc/testsuite/g++.dg/abi/dtor1.C
+++ b/gcc/testsuite/g++.dg/abi/dtor1.C
@@ -1,4 +1,5 @@
// { dg-do compile { target i?86-*-* } }
+// { dg-forbid-option "-m64" }
// { dg-options "-fabi-version=0" }
struct A {
diff --git a/gcc/testsuite/g++.dg/abi/empty10.C b/gcc/testsuite/g++.dg/abi/empty10.C
index 970afba..af2ba9c 100644
--- a/gcc/testsuite/g++.dg/abi/empty10.C
+++ b/gcc/testsuite/g++.dg/abi/empty10.C
@@ -1,4 +1,5 @@
// { dg-do run { target i?86-*-* } }
+// { dg-forbid-option "-m64" }
// { dg-options "-fabi-version=0 -w" }
struct E {};
diff --git a/gcc/testsuite/g++.dg/abi/empty7.C b/gcc/testsuite/g++.dg/abi/empty7.C
index 4b1ac3b..7cc6510 100644
--- a/gcc/testsuite/g++.dg/abi/empty7.C
+++ b/gcc/testsuite/g++.dg/abi/empty7.C
@@ -1,4 +1,5 @@
// { dg-do run { target i?86-*-* } }
+// { dg-forbid-option "-m64" }
// { dg-options "-fabi-version=0" }
struct S1 {};
diff --git a/gcc/testsuite/g++.dg/abi/empty9.C b/gcc/testsuite/g++.dg/abi/empty9.C
index 757bf6c..10ebedf 100644
--- a/gcc/testsuite/g++.dg/abi/empty9.C
+++ b/gcc/testsuite/g++.dg/abi/empty9.C
@@ -1,4 +1,5 @@
// { dg-do run { target i?86-*-* } }
+// { dg-forbid-option "-m64" }
// { dg-options "-w -fabi-version=0" }
struct E1 {};
diff --git a/gcc/testsuite/g++.dg/abi/layout3.C b/gcc/testsuite/g++.dg/abi/layout3.C
index 6ab6d6b..a2e94f6 100644
--- a/gcc/testsuite/g++.dg/abi/layout3.C
+++ b/gcc/testsuite/g++.dg/abi/layout3.C
@@ -1,4 +1,5 @@
// { dg-do run { target i?86-*-* } }
+// { dg-forbid-option "-m64" }
// { dg-options "-fabi-version=0 -w" }
struct S {
diff --git a/gcc/testsuite/g++.dg/abi/layout4.C b/gcc/testsuite/g++.dg/abi/layout4.C
index a1d27ee..105c74b 100644
--- a/gcc/testsuite/g++.dg/abi/layout4.C
+++ b/gcc/testsuite/g++.dg/abi/layout4.C
@@ -1,4 +1,5 @@
// { dg-do run { target i?86-*-* } }
+// { dg-forbid-option "-m64" }
// { dg-options "-fabi-version=1" }
struct C4
diff --git a/gcc/testsuite/g++.dg/abi/thunk1.C b/gcc/testsuite/g++.dg/abi/thunk1.C
index c9ad5b4..0ba7ce7 100644
--- a/gcc/testsuite/g++.dg/abi/thunk1.C
+++ b/gcc/testsuite/g++.dg/abi/thunk1.C
@@ -1,4 +1,5 @@
// { dg-do compile { target i?86-*-* } }
+// { dg-forbid-option "-m64" }
struct A {
virtual void f ();
diff --git a/gcc/testsuite/g++.dg/abi/thunk2.C b/gcc/testsuite/g++.dg/abi/thunk2.C
index b1c9788..e677419 100644
--- a/gcc/testsuite/g++.dg/abi/thunk2.C
+++ b/gcc/testsuite/g++.dg/abi/thunk2.C
@@ -1,4 +1,5 @@
// { dg-do compile { target i?86-*-* } }
+// { dg-forbid-option "-m64" }
// { dg-options -w }
struct A {
diff --git a/gcc/testsuite/g++.dg/abi/vbase11.C b/gcc/testsuite/g++.dg/abi/vbase11.C
index 3755773..974f562 100644
--- a/gcc/testsuite/g++.dg/abi/vbase11.C
+++ b/gcc/testsuite/g++.dg/abi/vbase11.C
@@ -1,4 +1,5 @@
// { dg-do run { target i?86-*-* } }
+// { dg-forbid-option "-m64" }
// { dg-options "-fabi-version=0" }
struct A { virtual void f(); char c1; };
diff --git a/gcc/testsuite/g++.dg/abi/vthunk2.C b/gcc/testsuite/g++.dg/abi/vthunk2.C
index 2499749..314f598 100644
--- a/gcc/testsuite/g++.dg/abi/vthunk2.C
+++ b/gcc/testsuite/g++.dg/abi/vthunk2.C
@@ -1,4 +1,5 @@
// { dg-do compile { target i?86-*-* } }
+// { dg-forbid-option "-m64" }
struct c0 {
virtual void f ();
diff --git a/gcc/testsuite/g++.dg/abi/vthunk3.C b/gcc/testsuite/g++.dg/abi/vthunk3.C
index 3bd2fd4..bc677df 100644
--- a/gcc/testsuite/g++.dg/abi/vthunk3.C
+++ b/gcc/testsuite/g++.dg/abi/vthunk3.C
@@ -1,4 +1,5 @@
// { dg-do compile { target i?86-*-* } }
+// { dg-forbid-option "-m64" }
// { dg-options "-fabi-version=0" }
struct A {
diff --git a/gcc/testsuite/g++.dg/ext/attrib8.C b/gcc/testsuite/g++.dg/ext/attrib8.C
index 26021c5..0b162e3 100644
--- a/gcc/testsuite/g++.dg/ext/attrib8.C
+++ b/gcc/testsuite/g++.dg/ext/attrib8.C
@@ -1,5 +1,6 @@
// PR 8656
// { dg-do compile { target i?86-*-* } }
+// { dg-forbid-option "-m64" }
extern int * (__attribute__((stdcall)) *fooPtr)( void);
int * __attribute__((stdcall)) myFn01( void) { return 0; }
diff --git a/gcc/testsuite/g++.dg/opt/longbranch2.C b/gcc/testsuite/g++.dg/opt/longbranch2.C
index b74cedd..2ada198 100644
--- a/gcc/testsuite/g++.dg/opt/longbranch2.C
+++ b/gcc/testsuite/g++.dg/opt/longbranch2.C
@@ -3,6 +3,7 @@
// { dg-do compile }
// { dg-options "-O3 -funroll-loops -mtune=k6 -fomit-frame-pointer" { target i?86-*-* } }
+// { dg-forbid-option "-m64" { target i?86-*-* } }
// This used to fail to assemble because of an out-of-range 'loop' instructions.
diff --git a/gcc/testsuite/g++.dg/opt/reg-stack4.C b/gcc/testsuite/g++.dg/opt/reg-stack4.C
index 7b461d8..5db1415 100644
--- a/gcc/testsuite/g++.dg/opt/reg-stack4.C
+++ b/gcc/testsuite/g++.dg/opt/reg-stack4.C
@@ -6,6 +6,7 @@
// { dg-do compile }
// { dg-options "-mtune=i586 -O2" { target i?86-*-* } }
+// { dg-forbid-option "-m64" { target i?86-*-* } }
struct array {
double data;
diff --git a/gcc/testsuite/g++.old-deja/g++.ext/attrib1.C b/gcc/testsuite/g++.old-deja/g++.ext/attrib1.C
index 3947e90..0d66d72 100644
--- a/gcc/testsuite/g++.old-deja/g++.ext/attrib1.C
+++ b/gcc/testsuite/g++.old-deja/g++.ext/attrib1.C
@@ -1,4 +1,5 @@
// { dg-do assemble { target i?86-*-* } }
+// { dg-forbid-option "-m64" }
// Test for using prefix attributes in a parameter decl.
// Contributed by Jason Merrill <jason@cygnus.com>
diff --git a/gcc/testsuite/g++.old-deja/g++.ext/attrib2.C b/gcc/testsuite/g++.old-deja/g++.ext/attrib2.C
index 0979e16..abac1b3 100644
--- a/gcc/testsuite/g++.old-deja/g++.ext/attrib2.C
+++ b/gcc/testsuite/g++.old-deja/g++.ext/attrib2.C
@@ -1,4 +1,5 @@
// { dg-do run { target i?86-*-* } }
+// { dg-forbid-option "-m64" }
// Test that stdcall doesn't prevent us from using op delete.
// Contributed by Jason Merrill <jason@cygnus.com>
diff --git a/gcc/testsuite/g++.old-deja/g++.ext/attrib3.C b/gcc/testsuite/g++.old-deja/g++.ext/attrib3.C
index aff745e..f47ab07 100644
--- a/gcc/testsuite/g++.old-deja/g++.ext/attrib3.C
+++ b/gcc/testsuite/g++.old-deja/g++.ext/attrib3.C
@@ -1,4 +1,5 @@
// { dg-do run { target i?86-*-* } }
+// { dg-forbid-option "-m64" }
// Test for proper handling of attributes in template instantiation.
// Contributed by Jason Merrill <jason@cygnus.com>
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 f3a682d..153c881 100644
--- a/gcc/testsuite/g++.old-deja/g++.other/store-expr1.C
+++ b/gcc/testsuite/g++.old-deja/g++.other/store-expr1.C
@@ -1,4 +1,5 @@
// { dg-do run { target i?86-*-* } }
+// { dg-forbid-option "-m64" }
// { dg-options "-mtune=i686 -O2 -fpic" }
// { dg-bogus "\[Uu\]nresolved symbol .(_GLOBAL_OFFSET_TABLE_|\[_.A-Za-z\]\[_.0-9A-Za-z\]*@(PLT|GOT|GOTOFF))" "PIC unsupported" { xfail *-*-netware* } 0 }
class G {};
diff --git a/gcc/testsuite/g++.old-deja/g++.other/store-expr2.C b/gcc/testsuite/g++.old-deja/g++.other/store-expr2.C
index 430a2c6..651f81d 100644
--- a/gcc/testsuite/g++.old-deja/g++.other/store-expr2.C
+++ b/gcc/testsuite/g++.old-deja/g++.other/store-expr2.C
@@ -1,4 +1,5 @@
// { dg-do run { target i?86-*-* } }
+// { dg-forbid-option "-m64" }
// { dg-options "-mtune=i686 -O2" }
class G {};
diff --git a/gcc/testsuite/gcc.c-torture/execute/20010129-1.x b/gcc/testsuite/gcc.c-torture/execute/20010129-1.x
index d35a7a6..7e474c4 100644
--- a/gcc/testsuite/gcc.c-torture/execute/20010129-1.x
+++ b/gcc/testsuite/gcc.c-torture/execute/20010129-1.x
@@ -1,4 +1,13 @@
+# Use "-mtune=i686" on i?86-*-* unless "-m64" is specified.
if { [istarget "i?86-*-*"] } {
- set additional_flags "-mtune=i686"
+ set target_name [target_info name]
+ if {[board_info $target_name exists multilib_flags]} {
+ set multilib_flags [board_info $target_name multilib_flags]
+ if { ![regexp -- "-m64" $multilib_flags] } {
+ set additional_flags "-mtune=i686"
+ }
+ } else {
+ set additional_flags "-mtune=i686"
+ }
}
return 0
diff --git a/gcc/testsuite/gcc.dg/20000609-1.c b/gcc/testsuite/gcc.dg/20000609-1.c
index 568ca5c..2f0f783 100644
--- a/gcc/testsuite/gcc.dg/20000609-1.c
+++ b/gcc/testsuite/gcc.dg/20000609-1.c
@@ -1,5 +1,6 @@
/* { dg-do run { target i?86-*-* } } */
/* { dg-options "-O1 -ffast-math -march=i686" } */
+/* { dg-forbid-option "-m64" } */
/* Sanity check for fp_jcc_* with TARGET_CMOVE. */
diff --git a/gcc/testsuite/gcc.dg/20000720-1.c b/gcc/testsuite/gcc.dg/20000720-1.c
index 92b52fb..dc3fb25 100644
--- a/gcc/testsuite/gcc.dg/20000720-1.c
+++ b/gcc/testsuite/gcc.dg/20000720-1.c
@@ -1,4 +1,5 @@
/* { dg-do compile { target i?86-*-* } } */
+/* { dg-forbid-option "-m64" } */
/* { dg-options "-mpreferred-stack-boundary=2 -march=i586 -O2 -fomit-frame-pointer" } */
extern void *foo(void *a, const void *b, unsigned c);
diff --git a/gcc/testsuite/gcc.dg/20011107-1.c b/gcc/testsuite/gcc.dg/20011107-1.c
index 395de3d..b61de6c 100644
--- a/gcc/testsuite/gcc.dg/20011107-1.c
+++ b/gcc/testsuite/gcc.dg/20011107-1.c
@@ -1,4 +1,5 @@
/* { dg-do compile { target i?86-*-* } } */
+/* { dg-forbid-option "-m64" } */
/* { dg-options "-O2 -mtune=k6" } */
void
diff --git a/gcc/testsuite/gcc.dg/20011119-1.c b/gcc/testsuite/gcc.dg/20011119-1.c
index 0df09a3..67525b9 100644
--- a/gcc/testsuite/gcc.dg/20011119-1.c
+++ b/gcc/testsuite/gcc.dg/20011119-1.c
@@ -1,5 +1,6 @@
/* Test for reload failing to eliminate from argp to sp. */
/* { dg-do run { target i?86-*-* } } */
+/* { dg-forbid-option "-m64" } */
/* { dg-options "-O2 -fomit-frame-pointer" } */
static int ustrsize (const char *s);
diff --git a/gcc/testsuite/gcc.dg/20020108-1.c b/gcc/testsuite/gcc.dg/20020108-1.c
index 08baa07..6cabb50 100644
--- a/gcc/testsuite/gcc.dg/20020108-1.c
+++ b/gcc/testsuite/gcc.dg/20020108-1.c
@@ -6,6 +6,7 @@
/* { dg-do compile } */
/* { dg-options "-O2" } */
/* { dg-options "-O2 -mtune=i686" { target i?86-*-* } } */
+/* { dg-forbid-option "-m64" { target i?86-*-* } } */
void
foo (unsigned short *cp)
diff --git a/gcc/testsuite/gcc.dg/20020122-2.c b/gcc/testsuite/gcc.dg/20020122-2.c
index 2115a22..d6062b5 100644
--- a/gcc/testsuite/gcc.dg/20020122-2.c
+++ b/gcc/testsuite/gcc.dg/20020122-2.c
@@ -4,6 +4,7 @@
/* { dg-do compile } */
/* { dg-options "-O2 -fprefetch-loop-arrays -w" } */
/* { dg-options "-O2 -fprefetch-loop-arrays -march=athlon" { target i?86-*-* } } */
+/* { dg-forbid-option "-m64" { target i?86-*-* } } */
extern int access( char* );
extern int a();
diff --git a/gcc/testsuite/gcc.dg/20020122-3.c b/gcc/testsuite/gcc.dg/20020122-3.c
index 3b2a371..77b7035 100644
--- a/gcc/testsuite/gcc.dg/20020122-3.c
+++ b/gcc/testsuite/gcc.dg/20020122-3.c
@@ -5,6 +5,7 @@
/* { dg-do compile } */
/* { dg-options "-Os -fprefetch-loop-arrays -w" } */
/* { dg-options "-Os -fprefetch-loop-arrays -mtune=pentium3 -w" { target i?86-*-* } } */
+/* { dg-forbid-option "-m64" { target i?86-*-* } } */
int foo (int *p, int n)
{
diff --git a/gcc/testsuite/gcc.dg/20020201-3.c b/gcc/testsuite/gcc.dg/20020201-3.c
index 67e9a8a..1d93475 100644
--- a/gcc/testsuite/gcc.dg/20020201-3.c
+++ b/gcc/testsuite/gcc.dg/20020201-3.c
@@ -1,6 +1,7 @@
/* This testcase ICEd because a SFmode variable was given a MMX register
for which there is no movsf exists. */
/* { dg-do compile { target i?86-*-* } } */
+/* { dg-forbid-option "-m64" } */
/* { dg-options "-O2 -march=i686 -mmmx -fno-strict-aliasing" } */
struct A { unsigned int a, b; };
diff --git a/gcc/testsuite/gcc.dg/20020206-1.c b/gcc/testsuite/gcc.dg/20020206-1.c
index 724c03a..643c439 100644
--- a/gcc/testsuite/gcc.dg/20020206-1.c
+++ b/gcc/testsuite/gcc.dg/20020206-1.c
@@ -5,6 +5,7 @@
/* { dg-do run } */
/* { dg-options "-O2 -fprefetch-loop-arrays -w" } */
/* { dg-options "-O2 -fprefetch-loop-arrays -mtune=pentium3 -w" { target i?86-*-* } } */
+/* { dg-forbid-option "-m64" { target i?86-*-* } } */
struct reload
{
diff --git a/gcc/testsuite/gcc.dg/20020218-1.c b/gcc/testsuite/gcc.dg/20020218-1.c
index 2887328..eff60de 100644
--- a/gcc/testsuite/gcc.dg/20020218-1.c
+++ b/gcc/testsuite/gcc.dg/20020218-1.c
@@ -1,5 +1,6 @@
/* Verify that X86-64 only SSE registers aren't restored on IA-32. */
/* { dg-do compile { target i?86-*-* } } */
+/* { dg-forbid-option "-m64" } */
/* { dg-options "-O2 -msse" } */
/* { dg-final { scan-assembler-not "xmm8" } } */
diff --git a/gcc/testsuite/gcc.dg/20020310-1.c b/gcc/testsuite/gcc.dg/20020310-1.c
index 39fbdb0..fd3c24d 100644
--- a/gcc/testsuite/gcc.dg/20020310-1.c
+++ b/gcc/testsuite/gcc.dg/20020310-1.c
@@ -3,6 +3,7 @@
/* { dg-do run } */
/* { dg-options "-O2" } */
/* { dg-options "-O2 -mtune=i586" { target i?86-*-* } } */
+/* { dg-forbid-option "-m64" { target i?86-*-* } } */
struct A
{
diff --git a/gcc/testsuite/gcc.dg/20020411-1.c b/gcc/testsuite/gcc.dg/20020411-1.c
index a1834b8..d78608d 100644
--- a/gcc/testsuite/gcc.dg/20020411-1.c
+++ b/gcc/testsuite/gcc.dg/20020411-1.c
@@ -4,6 +4,7 @@
/* { dg-do compile } */
/* { dg-options "-O2" } */
/* { dg-options "-O2 -march=i686" { target i?86-*-* } } */
+/* { dg-forbid-option "-m64" { target i?86-*-* } } */
#if __INT_MAX__ > 32767
diff --git a/gcc/testsuite/gcc.dg/20020418-2.c b/gcc/testsuite/gcc.dg/20020418-2.c
index fbc38da..e3066c9 100644
--- a/gcc/testsuite/gcc.dg/20020418-2.c
+++ b/gcc/testsuite/gcc.dg/20020418-2.c
@@ -2,6 +2,7 @@
/* { dg-do compile } */
/* { dg-options "-O2 -funroll-all-loops" } */
/* { dg-options "-O2 -funroll-all-loops -march=pentium3" { target i?86-*-* } } */
+/* { dg-forbid-option "-m64" { target i?86-*-* } } */
void bar (float);
diff --git a/gcc/testsuite/gcc.dg/20020426-1.c b/gcc/testsuite/gcc.dg/20020426-1.c
index 94523e7..225b319 100644
--- a/gcc/testsuite/gcc.dg/20020426-1.c
+++ b/gcc/testsuite/gcc.dg/20020426-1.c
@@ -1,5 +1,6 @@
/* { dg-do compile { target i?86-*-* } } */
/* { dg-options "-msoft-float -mfp-ret-in-387" } */
+/* { dg-forbid-option "-m64" } */
void f() {
__builtin_apply(0, 0, 0);
diff --git a/gcc/testsuite/gcc.dg/20020426-2.c b/gcc/testsuite/gcc.dg/20020426-2.c
index dd7fa7f..85f04f8 100644
--- a/gcc/testsuite/gcc.dg/20020426-2.c
+++ b/gcc/testsuite/gcc.dg/20020426-2.c
@@ -3,6 +3,7 @@
/* { dg-do run } */
/* { dg-options "-O2" } */
/* { dg-options "-O2 -frename-registers -fomit-frame-pointer -fPIC -mtune=i686" { target i?86-*-* } } */
+/* { dg-forbid-option "-m64" { target i?86-*-* } } */
/* { dg-bogus "\[Uu\]nresolved symbol .(_GLOBAL_OFFSET_TABLE_|\[_.A-Za-z\]\[_.0-9A-Za-z\]*@(PLT|GOT|GOTOFF))" "PIC unsupported" { xfail *-*-netware* } 0 } */
extern void exit (int);
diff --git a/gcc/testsuite/gcc.dg/20020517-1.c b/gcc/testsuite/gcc.dg/20020517-1.c
index 40de866..bc6cb83 100644
--- a/gcc/testsuite/gcc.dg/20020517-1.c
+++ b/gcc/testsuite/gcc.dg/20020517-1.c
@@ -3,6 +3,7 @@
/* { dg-do run } */
/* { dg-options "-O2" } */
/* { dg-options "-O2 -mtune=i686" { target i?86-*-* } } */
+/* { dg-forbid-option "-m64" { target i?86-*-* } } */
#include <limits.h>
diff --git a/gcc/testsuite/gcc.dg/20020523-1.c b/gcc/testsuite/gcc.dg/20020523-1.c
index 5ae3da5..de0555f 100644
--- a/gcc/testsuite/gcc.dg/20020523-1.c
+++ b/gcc/testsuite/gcc.dg/20020523-1.c
@@ -2,6 +2,7 @@
This testcase was miscompiled because sse_mov?fcc_const0*
patterns were missing earlyclobber. */
/* { dg-do run { target i386-*-* } } */
+/* { dg-forbid-option "-m64" } */
/* { dg-options "-march=pentium3 -msse -ffast-math -O2" } */
extern void abort (void);
diff --git a/gcc/testsuite/gcc.dg/20020523-2.c b/gcc/testsuite/gcc.dg/20020523-2.c
index 1bb5a1a6..dc9a126 100644
--- a/gcc/testsuite/gcc.dg/20020523-2.c
+++ b/gcc/testsuite/gcc.dg/20020523-2.c
@@ -2,6 +2,7 @@
This testcase was miscompiled because sse_mov?fcc_const0*
patterns were missing earlyclobber. */
/* { dg-do run { target i386-*-* } } */
+/* { dg-forbid-option "-m64" } */
/* { dg-options "-march=pentium3 -msse -ffast-math -O2" } */
#include "i386-cpuid.h"
diff --git a/gcc/testsuite/gcc.dg/20020729-1.c b/gcc/testsuite/gcc.dg/20020729-1.c
index da1ed1b..0284645 100644
--- a/gcc/testsuite/gcc.dg/20020729-1.c
+++ b/gcc/testsuite/gcc.dg/20020729-1.c
@@ -1,4 +1,5 @@
/* { dg-do compile { target i?86-*-* } } */
+/* { dg-forbid-option "-m64" } */
/* { dg-options "-O2 -march=k6" } */
static inline void *
diff --git a/gcc/testsuite/gcc.dg/20030204-1.c b/gcc/testsuite/gcc.dg/20030204-1.c
index e236e3a..ac7c3ad 100644
--- a/gcc/testsuite/gcc.dg/20030204-1.c
+++ b/gcc/testsuite/gcc.dg/20030204-1.c
@@ -2,6 +2,7 @@
/* { dg-do compile } */
/* { dg-options "-O -ffast-math -funroll-loops" } */
/* { dg-options "-march=pentium3 -O -ffast-math -funroll-loops" { target i?86-*-* } } */
+/* { dg-forbid-option "-m64" { target i?86-*-* } } */
float foo (float *a, int i)
{
diff --git a/gcc/testsuite/gcc.dg/20030826-2.c b/gcc/testsuite/gcc.dg/20030826-2.c
index f25887d..f38e323 100644
--- a/gcc/testsuite/gcc.dg/20030826-2.c
+++ b/gcc/testsuite/gcc.dg/20030826-2.c
@@ -1,6 +1,7 @@
/* { dg-do run } */
/* { dg-options "-O2 -fomit-frame-pointer" } */
/* { dg-options "-O2 -fomit-frame-pointer -march=i386" { target i?86-*-* } } */
+/* { dg-forbid-option "-m64" { target i?86-*-* } } */
extern void abort (void);
extern void exit (int);
diff --git a/gcc/testsuite/gcc.dg/20030926-1.c b/gcc/testsuite/gcc.dg/20030926-1.c
index 806dea7..8af98aa 100644
--- a/gcc/testsuite/gcc.dg/20030926-1.c
+++ b/gcc/testsuite/gcc.dg/20030926-1.c
@@ -2,6 +2,7 @@
/* { dg-do compile { target i?86-*-* x86_64-*-* } } */
/* { dg-options "-O2 -minline-all-stringops" } */
/* { dg-options "-O2 -minline-all-stringops -march=pentium4" { target i?86-*-* } } */
+/* { dg-forbid-option "-m64" { target i?86-*-* } } */
extern void *memcpy (void *, const void *, __SIZE_TYPE__);
extern __SIZE_TYPE__ strlen (const char *);
diff --git a/gcc/testsuite/gcc.dg/20031202-1.c b/gcc/testsuite/gcc.dg/20031202-1.c
index 424e01b..7947770 100644
--- a/gcc/testsuite/gcc.dg/20031202-1.c
+++ b/gcc/testsuite/gcc.dg/20031202-1.c
@@ -1,6 +1,7 @@
/* { dg-do run } */
/* { dg-options "-O2" } */
/* { dg-options "-O2 -mtune=i686" { target i?86-*-* } } */
+/* { dg-forbid-option "-m64" { target i?86-*-* } } */
extern void abort (void);
extern void exit (int);
diff --git a/gcc/testsuite/gcc.dg/980312-1.c b/gcc/testsuite/gcc.dg/980312-1.c
index 8f72c31..69553ef 100644
--- a/gcc/testsuite/gcc.dg/980312-1.c
+++ b/gcc/testsuite/gcc.dg/980312-1.c
@@ -1,4 +1,5 @@
/* { dg-do link { target i?86-*-* } } */
+/* { dg-forbid-option "-m64" } */
/* { dg-options "-O2 -march=pentiumpro" } */
extern __inline double
diff --git a/gcc/testsuite/gcc.dg/980313-1.c b/gcc/testsuite/gcc.dg/980313-1.c
index 1036339..1e23fee 100644
--- a/gcc/testsuite/gcc.dg/980313-1.c
+++ b/gcc/testsuite/gcc.dg/980313-1.c
@@ -1,4 +1,5 @@
/* { dg-do link { target i?86-*-* } } */
+/* { dg-forbid-option "-m64" } */
/* { dg-options "-O2 -march=pentiumpro" } */
extern __inline double
diff --git a/gcc/testsuite/gcc.dg/990117-1.c b/gcc/testsuite/gcc.dg/990117-1.c
index 606ba44..df7636b 100644
--- a/gcc/testsuite/gcc.dg/990117-1.c
+++ b/gcc/testsuite/gcc.dg/990117-1.c
@@ -1,4 +1,5 @@
/* { dg-do compile { target i?86-*-* } } */
+/* { dg-forbid-option "-m64" } */
/* { dg-options "-O2 -march=pentiumpro" } */
extern __inline double
diff --git a/gcc/testsuite/gcc.dg/990424-1.c b/gcc/testsuite/gcc.dg/990424-1.c
index 00b4764..9a3b630 100644
--- a/gcc/testsuite/gcc.dg/990424-1.c
+++ b/gcc/testsuite/gcc.dg/990424-1.c
@@ -2,6 +2,7 @@
with stdcall functions. */
/* { dg-do run { target i?86-*-* } } */
+/* { dg-forbid-option "-m64" } */
/* { dg-options -mpreferred-stack-boundary=4 } */
void __attribute__((stdcall)) foo(int a, int b, int c);
diff --git a/gcc/testsuite/gcc.dg/990524-1.c b/gcc/testsuite/gcc.dg/990524-1.c
index 8b10172..bded9f4 100644
--- a/gcc/testsuite/gcc.dg/990524-1.c
+++ b/gcc/testsuite/gcc.dg/990524-1.c
@@ -1,4 +1,5 @@
/* { dg-do compile { target i?86-*-* } } */
+/* { dg-forbid-option "-m64" } */
/* { dg-options "-O2 -march=pentiumpro" } */
typedef struct t_anim_info {
diff --git a/gcc/testsuite/gcc.dg/991230-1.c b/gcc/testsuite/gcc.dg/991230-1.c
index 76b1b8e..3bc1b06 100644
--- a/gcc/testsuite/gcc.dg/991230-1.c
+++ b/gcc/testsuite/gcc.dg/991230-1.c
@@ -1,4 +1,5 @@
/* { dg-do run { target i?86-*-* } } */
+/* { dg-forbid-option "-m64" } */
/* { dg-options "-O -ffast-math -mtune=i486" } */
/* Test that floating point greater-than tests are compiled correctly with
diff --git a/gcc/testsuite/gcc.dg/i386-387-1.c b/gcc/testsuite/gcc.dg/i386-387-1.c
index 92b671b..0586188 100644
--- a/gcc/testsuite/gcc.dg/i386-387-1.c
+++ b/gcc/testsuite/gcc.dg/i386-387-1.c
@@ -1,5 +1,6 @@
/* Verify that -mno-fancy-math-387 works. */
/* { dg-do compile { target "i?86-*-*" } } */
+/* { dg-forbid-option "-m64" } */
/* { dg-options "-O -ffast-math -mfpmath=387 -mno-fancy-math-387 -march=i386" } */
/* { dg-final { scan-assembler "call\t_?sin" } } */
/* { dg-final { scan-assembler "call\t_?cos" } } */
diff --git a/gcc/testsuite/gcc.dg/i386-387-2.c b/gcc/testsuite/gcc.dg/i386-387-2.c
index 11eb0cc..9642b22 100644
--- a/gcc/testsuite/gcc.dg/i386-387-2.c
+++ b/gcc/testsuite/gcc.dg/i386-387-2.c
@@ -1,5 +1,6 @@
/* Verify that -march overrides -mno-fancy-math-387. */
/* { dg-do compile { target "i?86-*-*" } } */
+/* { dg-forbid-option "-m64" } */
/* { dg-options "-O -ffast-math -mfpmath=387 -march=i686 -mno-fancy-math-387" } */
/* { dg-final { scan-assembler "fsin" } } */
/* { dg-final { scan-assembler "fcos" } } */
diff --git a/gcc/testsuite/gcc.dg/i386-387-3.c b/gcc/testsuite/gcc.dg/i386-387-3.c
index f61cd61..92f95d6 100644
--- a/gcc/testsuite/gcc.dg/i386-387-3.c
+++ b/gcc/testsuite/gcc.dg/i386-387-3.c
@@ -1,5 +1,6 @@
/* Verify that 387 mathematical constants are recognized. */
/* { dg-do compile { target "i?86-*-*" } } */
+/* { dg-forbid-option "-m64" } */
/* { dg-options "-O2 -march=i686" } */
/* { dg-final { scan-assembler "fldpi" } } */
diff --git a/gcc/testsuite/gcc.dg/i386-387-4.c b/gcc/testsuite/gcc.dg/i386-387-4.c
index 809ab82..65834b0 100644
--- a/gcc/testsuite/gcc.dg/i386-387-4.c
+++ b/gcc/testsuite/gcc.dg/i386-387-4.c
@@ -1,4 +1,5 @@
/* { dg-do compile { target "i?86-*-*" } } */
+/* { dg-forbid-option "-m64" } */
/* { dg-options "-O2 -march=i686" } */
/* { dg-final { scan-assembler "fldpi" } } */
diff --git a/gcc/testsuite/gcc.dg/i386-387-5.c b/gcc/testsuite/gcc.dg/i386-387-5.c
index 7c51297..d5f29b3 100644
--- a/gcc/testsuite/gcc.dg/i386-387-5.c
+++ b/gcc/testsuite/gcc.dg/i386-387-5.c
@@ -1,5 +1,6 @@
/* Verify that -mno-fancy-math-387 works. */
/* { dg-do compile { target "i?86-*-*" } } */
+/* { dg-forbid-option "-m64" } */
/* { dg-options "-O -ffast-math -mfpmath=387 -mno-fancy-math-387 -march=i386" } */
/* { dg-final { scan-assembler "call\t_?atan" } } */
/* { dg-final { scan-assembler "call\t_?log1p" } } */
diff --git a/gcc/testsuite/gcc.dg/i386-387-6.c b/gcc/testsuite/gcc.dg/i386-387-6.c
index c8e5311..85d2fa4 100644
--- a/gcc/testsuite/gcc.dg/i386-387-6.c
+++ b/gcc/testsuite/gcc.dg/i386-387-6.c
@@ -1,5 +1,6 @@
/* Verify that -march overrides -mno-fancy-math-387. */
/* { dg-do compile { target "i?86-*-*" } } */
+/* { dg-forbid-option "-m64" } */
/* { dg-options "-O -ffast-math -mfpmath=387 -march=i686 -mno-fancy-math-387" } */
/* { dg-final { scan-assembler "fpatan" } } */
/* { dg-final { scan-assembler "fyl2xp1" } } */
diff --git a/gcc/testsuite/gcc.dg/i386-asm-1.c b/gcc/testsuite/gcc.dg/i386-asm-1.c
index 826f5b6..5938699 100644
--- a/gcc/testsuite/gcc.dg/i386-asm-1.c
+++ b/gcc/testsuite/gcc.dg/i386-asm-1.c
@@ -1,5 +1,6 @@
/* PR inline-asm/11676 */
/* { dg-do run { target i?86-*-* } } */
+/* { dg-forbid-option "-m64" } */
/* { dg-options "-O2" } */
extern void abort (void);
diff --git a/gcc/testsuite/gcc.dg/i386-bitfield1.c b/gcc/testsuite/gcc.dg/i386-bitfield1.c
index 21916c1..1db7cb5 100644
--- a/gcc/testsuite/gcc.dg/i386-bitfield1.c
+++ b/gcc/testsuite/gcc.dg/i386-bitfield1.c
@@ -1,5 +1,6 @@
// Test for bitfield alignment in structs on IA-32
// { dg-do run { target i?86-*-* } }
+/* { dg-forbid-option "-m64" } */
// { dg-options "-O2" }
// { dg-options "-mno-align-double -mno-ms-bitfields" { target i?86-*-interix* i?86-*-cygwin* i?86-*-mingw*} }
diff --git a/gcc/testsuite/gcc.dg/i386-bitfield2.c b/gcc/testsuite/gcc.dg/i386-bitfield2.c
index 9e5da39..60e1697 100644
--- a/gcc/testsuite/gcc.dg/i386-bitfield2.c
+++ b/gcc/testsuite/gcc.dg/i386-bitfield2.c
@@ -1,5 +1,6 @@
// Test for bitfield alignment in structs on IA-32
// { dg-do run { target i?86-*-* } }
+/* { dg-forbid-option "-m64" } */
// { dg-options "-O2" }
// { dg-options "-mno-align-double -mno-ms-bitfields" { target i?86-*-interix* i?86-*-cygwin* i?86-*-mingw* } }
diff --git a/gcc/testsuite/gcc.dg/i386-loop-1.c b/gcc/testsuite/gcc.dg/i386-loop-1.c
index 635f012..b9e0fe2 100644
--- a/gcc/testsuite/gcc.dg/i386-loop-1.c
+++ b/gcc/testsuite/gcc.dg/i386-loop-1.c
@@ -1,5 +1,6 @@
/* PR optimization/9888 */
/* { dg-do run { target i?86-*-* } } */
+/* { dg-forbid-option "-m64" } */
/* { dg-options "-mtune=k6 -O3" } */
/* Verify that GCC doesn't emit out of range 'loop' instructions. */
diff --git a/gcc/testsuite/gcc.dg/i386-loop-2.c b/gcc/testsuite/gcc.dg/i386-loop-2.c
index 3a3e69e..3da2b09 100644
--- a/gcc/testsuite/gcc.dg/i386-loop-2.c
+++ b/gcc/testsuite/gcc.dg/i386-loop-2.c
@@ -1,6 +1,7 @@
/* PR optimization/9888 */
/* Originator: Jim Bray <jb@as220.org> */
/* { dg-do run { target i?86-*-* } } */
+/* { dg-forbid-option "-m64" } */
/* { dg-options "-mtune=k6 -Os" } */
enum reload_type
diff --git a/gcc/testsuite/gcc.dg/i386-loop-3.c b/gcc/testsuite/gcc.dg/i386-loop-3.c
index 59ed5bf..d574f2f 100644
--- a/gcc/testsuite/gcc.dg/i386-loop-3.c
+++ b/gcc/testsuite/gcc.dg/i386-loop-3.c
@@ -2,6 +2,7 @@
/* Originator: Tim McGrath <misty-@charter.net> */
/* Testcase contributed by Eric Botcazou <ebotcazou@libertysurf.fr> */
/* { dg-do run { target i?86-*-* } } */
+/* { dg-forbid-option "-m64" } */
/* { dg-options "-mtune=k6 -O3 -ffast-math -funroll-loops" } */
extern void *memset (void *, int, __SIZE_TYPE__);
diff --git a/gcc/testsuite/gcc.dg/i386-pentium4-not-mull.c b/gcc/testsuite/gcc.dg/i386-pentium4-not-mull.c
index 8d4a083..24516fd 100644
--- a/gcc/testsuite/gcc.dg/i386-pentium4-not-mull.c
+++ b/gcc/testsuite/gcc.dg/i386-pentium4-not-mull.c
@@ -1,5 +1,6 @@
/* { dg-do compile { target i?86-*-* x86_64-*-* } } */
/* { dg-options "-O2 -march=pentium4" { target i?86-*-* } } */
+/* { dg-forbid-option "-m64" { target i?86-*-* } } */
/* { dg-options "-O2 -march=pentium4 -m32" { target x86_64-*-* } } */
/* { dg-final { scan-assembler-not "imull" } } */
diff --git a/gcc/testsuite/gcc.dg/i386-pic-1.c b/gcc/testsuite/gcc.dg/i386-pic-1.c
index 4c548bf..72c46e9 100644
--- a/gcc/testsuite/gcc.dg/i386-pic-1.c
+++ b/gcc/testsuite/gcc.dg/i386-pic-1.c
@@ -1,5 +1,6 @@
/* PR target/8340 */
/* { dg-do compile { target i?86-*-* } } */
+/* { dg-forbid-option "-m64" } */
/* { dg-options "-fPIC" } */
int foo ()
diff --git a/gcc/testsuite/gcc.dg/i386-regparm.c b/gcc/testsuite/gcc.dg/i386-regparm.c
index 18206ea..8406874 100644
--- a/gcc/testsuite/gcc.dg/i386-regparm.c
+++ b/gcc/testsuite/gcc.dg/i386-regparm.c
@@ -1,4 +1,5 @@
/* { dg-do compile { target i?86-*-* } } */
+/* { dg-forbid-option "-m64" } */
/* { dg-options "-W -Wall" } */
/* Verify that GCC correctly detects non-matching regparm attributes. */
diff --git a/gcc/testsuite/gcc.dg/i386-signbit-1.c b/gcc/testsuite/gcc.dg/i386-signbit-1.c
index 8b8866e..2c0fe5c 100644
--- a/gcc/testsuite/gcc.dg/i386-signbit-1.c
+++ b/gcc/testsuite/gcc.dg/i386-signbit-1.c
@@ -1,5 +1,6 @@
/* PR optimization/8746 */
/* { dg-do run { target i?86-*-* } } */
+/* { dg-forbid-option "-m64" } */
/* { dg-options "-O1 -mtune=i586" } */
extern void abort (void);
diff --git a/gcc/testsuite/gcc.dg/i386-signbit-2.c b/gcc/testsuite/gcc.dg/i386-signbit-2.c
index 5687d85..dbda6c4 100644
--- a/gcc/testsuite/gcc.dg/i386-signbit-2.c
+++ b/gcc/testsuite/gcc.dg/i386-signbit-2.c
@@ -1,5 +1,6 @@
/* PR optimization/8746 */
/* { dg-do run { target i?86-*-* } } */
+/* { dg-forbid-option "-m64" } */
/* { dg-options "-O1 -mtune=i586" } */
extern void abort (void);
diff --git a/gcc/testsuite/gcc.dg/i386-signbit-3.c b/gcc/testsuite/gcc.dg/i386-signbit-3.c
index ae97f21..476e873 100644
--- a/gcc/testsuite/gcc.dg/i386-signbit-3.c
+++ b/gcc/testsuite/gcc.dg/i386-signbit-3.c
@@ -1,5 +1,6 @@
/* PR optimization/8746 */
/* { dg-do run { target i?86-*-* } } */
+/* { dg-forbid-option "-m64" } */
/* { dg-options "-O1 -mtune=i586" } */
extern void abort (void);
diff --git a/gcc/testsuite/gcc.dg/i386-sse-5.c b/gcc/testsuite/gcc.dg/i386-sse-5.c
index 81184fc..ab2d499 100644
--- a/gcc/testsuite/gcc.dg/i386-sse-5.c
+++ b/gcc/testsuite/gcc.dg/i386-sse-5.c
@@ -1,4 +1,5 @@
/* { dg-do compile { target i?86-*-* } } */
+/* { dg-forbid-option "-m64" } */
/* { dg-options "-Winline -O2 -march=i386" } */
typedef double v2df __attribute__ ((vector_size (16)));
v2df p;
diff --git a/gcc/testsuite/gcc.dg/i386-sse-8.c b/gcc/testsuite/gcc.dg/i386-sse-8.c
index 8ec5e70..e74f0c0 100644
--- a/gcc/testsuite/gcc.dg/i386-sse-8.c
+++ b/gcc/testsuite/gcc.dg/i386-sse-8.c
@@ -4,6 +4,7 @@
/* { dg-do compile } */
/* { dg-options "" } */
/* { dg-options "-march=pentium3" { target i?86-*-* } } */
+/* { dg-forbid-option "-m64" { target i?86-*-* } } */
int main()
{
diff --git a/gcc/testsuite/gcc.dg/i386-unroll-1.c b/gcc/testsuite/gcc.dg/i386-unroll-1.c
index a424b95..2dff912 100644
--- a/gcc/testsuite/gcc.dg/i386-unroll-1.c
+++ b/gcc/testsuite/gcc.dg/i386-unroll-1.c
@@ -1,5 +1,6 @@
/* PR optimization/8599 */
/* { dg-do run { target i?86-*-* } } */
+/* { dg-forbid-option "-m64" } */
/* { dg-options "-mtune=k6 -O2 -funroll-loops" } */
extern void exit (int);
diff --git a/gcc/testsuite/gcc.dg/tls/opt-1.c b/gcc/testsuite/gcc.dg/tls/opt-1.c
index 8523c76..a35b72b 100644
--- a/gcc/testsuite/gcc.dg/tls/opt-1.c
+++ b/gcc/testsuite/gcc.dg/tls/opt-1.c
@@ -1,6 +1,7 @@
/* { dg-do compile } */
/* { dg-options "-O2 -fPIC" } */
/* { dg-options "-O2 -fPIC -mtune=i686" { target i?86-*-* } } */
+/* { dg-forbid-option "-m64" { target i?86-*-* } } */
extern __thread int thr;
diff --git a/gcc/testsuite/gcc.dg/tls/opt-2.c b/gcc/testsuite/gcc.dg/tls/opt-2.c
index 713fb7f..a4064f0 100644
--- a/gcc/testsuite/gcc.dg/tls/opt-2.c
+++ b/gcc/testsuite/gcc.dg/tls/opt-2.c
@@ -5,6 +5,7 @@
/* { dg-do link } */
/* { dg-options "-O2 -ftls-model=initial-exec" } */
/* { dg-options "-O2 -ftls-model=initial-exec -march=i686" { target i?86-*-* } } */
+/* { dg-forbid-option "-m64" { target i?86-*-* } } */
__thread int thr;
diff --git a/gcc/testsuite/gcc.dg/unroll-1.c b/gcc/testsuite/gcc.dg/unroll-1.c
index 1e2dd09..7a75d6b 100644
--- a/gcc/testsuite/gcc.dg/unroll-1.c
+++ b/gcc/testsuite/gcc.dg/unroll-1.c
@@ -2,6 +2,7 @@
/* { dg-do run } */
/* { dg-options "-O2 -funroll-loops" } */
/* { dg-options "-mtune=k6 -O2 -funroll-loops" { target i?86-*-* } } */
+/* { dg-forbid-option "-m64" { target i?86-*-* } } */
extern void abort (void);
diff --git a/gcc/testsuite/gcc.misc-tests/i386-pf-3dnow-1.c b/gcc/testsuite/gcc.misc-tests/i386-pf-3dnow-1.c
index a44c607..a21e9cc 100644
--- a/gcc/testsuite/gcc.misc-tests/i386-pf-3dnow-1.c
+++ b/gcc/testsuite/gcc.misc-tests/i386-pf-3dnow-1.c
@@ -2,6 +2,7 @@
variants that use 3DNow! prefetch instructions. */
/* { dg-do compile { target i?86-*-* } } */
+/* { dg-forbid-option "-m64" } */
extern void exit (int);
diff --git a/gcc/testsuite/gcc.misc-tests/i386-pf-athlon-1.c b/gcc/testsuite/gcc.misc-tests/i386-pf-athlon-1.c
index 09a67d8..33acfbb 100644
--- a/gcc/testsuite/gcc.misc-tests/i386-pf-athlon-1.c
+++ b/gcc/testsuite/gcc.misc-tests/i386-pf-athlon-1.c
@@ -3,6 +3,7 @@
locality hints. */
/* { dg-do compile { target i?86-*-* } } */
+/* { dg-forbid-option "-m64" } */
extern void exit (int);
diff --git a/gcc/testsuite/gcc.misc-tests/i386-pf-none-1.c b/gcc/testsuite/gcc.misc-tests/i386-pf-none-1.c
index 0ad3220..02d0efe 100644
--- a/gcc/testsuite/gcc.misc-tests/i386-pf-none-1.c
+++ b/gcc/testsuite/gcc.misc-tests/i386-pf-none-1.c
@@ -2,6 +2,7 @@
that do not support those instructions. */
/* { dg-do compile { target i?86-*-* } } */
+/* { dg-forbid-option "-m64" } */
extern void exit (int);
diff --git a/gcc/testsuite/gcc.misc-tests/i386-pf-sse-1.c b/gcc/testsuite/gcc.misc-tests/i386-pf-sse-1.c
index 1527577..e5fc091 100644
--- a/gcc/testsuite/gcc.misc-tests/i386-pf-sse-1.c
+++ b/gcc/testsuite/gcc.misc-tests/i386-pf-sse-1.c
@@ -2,6 +2,7 @@
variants that use SSE prefetch instructions. */
/* { dg-do compile { target i?86-*-* } } */
+/* { dg-forbid-option "-m64" } */
extern void exit (int);
diff --git a/gcc/testsuite/lib/gcc-dg.exp b/gcc/testsuite/lib/gcc-dg.exp
index 848526b..83c0a5b 100644
--- a/gcc/testsuite/lib/gcc-dg.exp
+++ b/gcc/testsuite/lib/gcc-dg.exp
@@ -446,6 +446,37 @@ proc dg-require-effective-target { args } {
}
}
+# ARGS is a list. The 0th element is the line number at which the
+# dg-forbid-option directive appeared in the source file. The 1st
+# element is a regular expression. If the regular expression matches
+# the command-line options implied by the current multilib, then the
+# test will be treated as unsupported. The 2nd element of the list,
+# if present, is a target selector conditionalizing this directive;
+# if the target selector does not match the current target, this
+# dg-forbid-option directive is ignored.
+
+proc dg-forbid-option { args } {
+ set target_name [target_info name]
+ set pattern [lindex $args 1]
+
+ if {[llength $args] > 2} {
+ set selector [lindex $args 2]
+ if { [dg-process-target $selector] == "N" } {
+ return
+ }
+ }
+
+ # Check to see if the option occurs in the multilib options
+ # for this target.
+ if {[board_info $target_name exists multilib_flags]} {
+ set multilib_flags [board_info $target_name multilib_flags]
+ if { [regexp -- ${pattern} $multilib_flags] } {
+ upvar dg-do-what dg-do-what
+ set dg-do-what [list [lindex ${dg-do-what} 0] "N" "P"]
+ }
+ }
+}
+
# Prune any messages matching ARGS[1] (a regexp) from test output.
proc dg-prune-output { args } {
global additional_prunes