aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorHans-Peter Nilsson <hp@bitrange.com>2002-03-15 05:36:43 +0000
committerHans-Peter Nilsson <hp@gcc.gnu.org>2002-03-15 05:36:43 +0000
commita541f1aa810c507bd578bd1046ac2da836b8088e (patch)
tree534a160beb1cae005a11a20ce5ee0d4a31bb0963 /gcc
parentf6562b3792cfd391c45f9370ad094cbd1934c3b4 (diff)
downloadgcc-a541f1aa810c507bd578bd1046ac2da836b8088e.zip
gcc-a541f1aa810c507bd578bd1046ac2da836b8088e.tar.gz
gcc-a541f1aa810c507bd578bd1046ac2da836b8088e.tar.bz2
20020312-2.c [__MMIX__]: No pic register.
* gcc.dg/20020312-2.c [__MMIX__]: No pic register. * gcc.c-torture/compile/981006-1.x: Don't use -fpic on cris-*-elf* cris-*-aout* mmix-*-*. * g++.old-deja/g++.other/local-alloc1.C: Skip on cris-*-elf* cris-*-aout* mmix-*-*. * g++.dg/debug/debug3.C: Expect warning for unsupported -fpic on cris-*-elf* cris-*-aout* and mmix-*-*. * gcc.dg/20001009-1.c: Ditto. * gcc.dg/20010912-1.c: Ditto. * gcc.dg/20020122-4.c: Ditto. * gcc.dg/inline-2.c: Ditto. From-SVN: r50794
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/ChangeLog14
-rw-r--r--gcc/testsuite/g++.dg/debug/debug3.C1
-rw-r--r--gcc/testsuite/g++.old-deja/g++.other/local-alloc1.C1
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/981006-1.x3
-rw-r--r--gcc/testsuite/gcc.dg/20001009-1.c1
-rw-r--r--gcc/testsuite/gcc.dg/20010912-1.c1
-rw-r--r--gcc/testsuite/gcc.dg/20020122-4.c1
-rw-r--r--gcc/testsuite/gcc.dg/20020312-2.c2
-rw-r--r--gcc/testsuite/gcc.dg/inline-2.c1
9 files changed, 25 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index cc3d5cc..c2e1c16 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,17 @@
+2002-03-15 Hans-Peter Nilsson <hp@bitrange.com>
+
+ * gcc.dg/20020312-2.c [__MMIX__]: No pic register.
+ * gcc.c-torture/compile/981006-1.x: Don't use -fpic on cris-*-elf*
+ cris-*-aout* mmix-*-*.
+ * g++.old-deja/g++.other/local-alloc1.C: Skip on cris-*-elf*
+ cris-*-aout* mmix-*-*.
+ * g++.dg/debug/debug3.C: Expect warning for unsupported -fpic on
+ cris-*-elf* cris-*-aout* and mmix-*-*.
+ * gcc.dg/20001009-1.c: Ditto.
+ * gcc.dg/20010912-1.c: Ditto.
+ * gcc.dg/20020122-4.c: Ditto.
+ * gcc.dg/inline-2.c: Ditto.
+
Thu Mar 14 14:28:38 2002 Jeffrey A Law (law@cygnus.com)
* gcc.c-torture/compile/20020314-1.c: New test.
diff --git a/gcc/testsuite/g++.dg/debug/debug3.C b/gcc/testsuite/g++.dg/debug/debug3.C
index 91ef35d..14cd7c5 100644
--- a/gcc/testsuite/g++.dg/debug/debug3.C
+++ b/gcc/testsuite/g++.dg/debug/debug3.C
@@ -3,6 +3,7 @@
// to emit location expression for parameter a of operator+.
// { dg-do compile }
// { dg-options "-fpic" }
+// { dg-warning "not supported" "PIC unsupported" { target cris-*-elf* cris-*-aout* mmix-*-* } 0 }
struct A { char *s; };
diff --git a/gcc/testsuite/g++.old-deja/g++.other/local-alloc1.C b/gcc/testsuite/g++.old-deja/g++.other/local-alloc1.C
index d58b9b7..2a31309 100644
--- a/gcc/testsuite/g++.old-deja/g++.other/local-alloc1.C
+++ b/gcc/testsuite/g++.old-deja/g++.other/local-alloc1.C
@@ -1,6 +1,7 @@
// Build don't link:
// Origin: Jakub Jelinek <jakub@redhat.com>
// Special g++ Options: -O0 -fpic
+// Skip if target: cris-*-elf* cris-*-aout* mmix-*-*
struct bar {
bar() {}
diff --git a/gcc/testsuite/gcc.c-torture/compile/981006-1.x b/gcc/testsuite/gcc.c-torture/compile/981006-1.x
index 83a5790..e05547b 100644
--- a/gcc/testsuite/gcc.c-torture/compile/981006-1.x
+++ b/gcc/testsuite/gcc.c-torture/compile/981006-1.x
@@ -8,6 +8,9 @@ if { [istarget rs6000-*-aix*]
|| [istarget sh-*-hms]
|| [istarget sh-*-coff]
|| [istarget h8300*-*-*]
+ || [istarget cris-*-elf*]
+ || [istarget cris-*-aout*]
+ || [istarget mmix-*-*]
} {
set options "-Wuninitialized -Werror"
} else {
diff --git a/gcc/testsuite/gcc.dg/20001009-1.c b/gcc/testsuite/gcc.dg/20001009-1.c
index 91b58a6..42336f7 100644
--- a/gcc/testsuite/gcc.dg/20001009-1.c
+++ b/gcc/testsuite/gcc.dg/20001009-1.c
@@ -1,5 +1,6 @@
/* { dg-do compile } */
/* { dg-options "-O2 -fpic" } */
+/* { dg-warning "not supported" "PIC unsupported" { target cris-*-elf* cris-*-aout* mmix-*-* } 0 } */
extern void foo (void *a, double x, double y);
void
diff --git a/gcc/testsuite/gcc.dg/20010912-1.c b/gcc/testsuite/gcc.dg/20010912-1.c
index b33b729..9d0d2e0 100644
--- a/gcc/testsuite/gcc.dg/20010912-1.c
+++ b/gcc/testsuite/gcc.dg/20010912-1.c
@@ -1,5 +1,6 @@
/* { dg-do run } */
/* { dg-options "-O2 -fpic" } */
+/* { dg-warning "not supported" "PIC unsupported" { target cris-*-elf* cris-*-aout* mmix-*-* } 0 } */
extern void abort (void);
extern void exit (int);
diff --git a/gcc/testsuite/gcc.dg/20020122-4.c b/gcc/testsuite/gcc.dg/20020122-4.c
index a6abe18..653dfcb 100644
--- a/gcc/testsuite/gcc.dg/20020122-4.c
+++ b/gcc/testsuite/gcc.dg/20020122-4.c
@@ -2,6 +2,7 @@
(mem (lo_sum pic (symbol_ref))) within an asm at the right time. */
/* { dg-do compile } */
/* { dg-options "-O2 -fpic" } */
+/* { dg-warning "not supported" "PIC unsupported" { target cris-*-elf* cris-*-aout* mmix-*-* } 0 } */
void foo()
{
diff --git a/gcc/testsuite/gcc.dg/20020312-2.c b/gcc/testsuite/gcc.dg/20020312-2.c
index 889e152..5e3a592 100644
--- a/gcc/testsuite/gcc.dg/20020312-2.c
+++ b/gcc/testsuite/gcc.dg/20020312-2.c
@@ -56,6 +56,8 @@
/* No pic register. */
#elif defined(__mips__)
/* PIC register is $28, but is used even without -fpic. */
+#elif defined(__MMIX__)
+/* No pic register. */
#elif defined(__mn10200__)
/* No pic register. */
#elif defined(__mn10300__)
diff --git a/gcc/testsuite/gcc.dg/inline-2.c b/gcc/testsuite/gcc.dg/inline-2.c
index 4031503..1320143 100644
--- a/gcc/testsuite/gcc.dg/inline-2.c
+++ b/gcc/testsuite/gcc.dg/inline-2.c
@@ -2,6 +2,7 @@
it has been deferred. */
/* { dg-do compile } */
/* { dg-options "-O3 -finline-limit=0 -fpic" } */
+/* { dg-warning "not supported" "PIC unsupported" { target cris-*-elf* cris-*-aout* mmix-*-* } 0 } */
static int foo(void)
{