20020312-2.c [__MMIX__]: No pic register.
authorHans-Peter Nilsson <hp@bitrange.com>
Fri, 15 Mar 2002 05:36:43 +0000 (05:36 +0000)
committerHans-Peter Nilsson <hp@gcc.gnu.org>
Fri, 15 Mar 2002 05:36:43 +0000 (05:36 +0000)
* 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

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/debug/debug3.C
gcc/testsuite/g++.old-deja/g++.other/local-alloc1.C
gcc/testsuite/gcc.c-torture/compile/981006-1.x
gcc/testsuite/gcc.dg/20001009-1.c
gcc/testsuite/gcc.dg/20010912-1.c
gcc/testsuite/gcc.dg/20020122-4.c
gcc/testsuite/gcc.dg/20020312-2.c
gcc/testsuite/gcc.dg/inline-2.c

index cc3d5cc..c2e1c16 100644 (file)
@@ -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.
index 91ef35d..14cd7c5 100644 (file)
@@ -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; };
 
index d58b9b7..2a31309 100644 (file)
@@ -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() {}
index 83a5790..e05547b 100644 (file)
@@ -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 {
index 91b58a6..42336f7 100644 (file)
@@ -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
index b33b729..9d0d2e0 100644 (file)
@@ -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);
index a6abe18..653dfcb 100644 (file)
@@ -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()
 {
index 889e152..5e3a592 100644 (file)
@@ -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__)
index 4031503..1320143 100644 (file)
@@ -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)
 {