This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Committed, testsuite: Tweak for PIC on mmix-*-* and cris-*-elf*.
- From: Hans-Peter Nilsson <hp at bitrange dot com>
- To: <gcc-patches at gcc dot gnu dot org>
- Date: Fri, 15 Mar 2002 00:38:17 -0500 (EST)
- Subject: Committed, testsuite: Tweak for PIC on mmix-*-* and cris-*-elf*.
Tweaks for the warning emitted on the MMIX and CRIS ports and
for an omission in gcc.dg/20020312-2.c. Tested on the mentioned
targets and mn10300-elf+mn10300-sim. I couldn't find a way to
silence warnings on specific targets with the old-deja
framework, so I simply skip that one test. Will commit this to
3.1 too.
* 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.
Index: g++.dg/debug/debug3.C
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/g++.dg/debug/debug3.C,v
retrieving revision 1.1
diff -p -c -r1.1 debug3.C
*** debug3.C 2002/02/14 14:17:42 1.1
--- debug3.C 2002/03/15 04:55:37
***************
*** 3,8 ****
--- 3,9 ----
// 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: g++.old-deja/g++.other/local-alloc1.C
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/g++.old-deja/g++.other/local-alloc1.C,v
retrieving revision 1.1
diff -p -c -r1.1 local-alloc1.C
*** local-alloc1.C 2002/01/25 11:20:29 1.1
--- local-alloc1.C 2002/03/15 04:55:38
***************
*** 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: gcc.c-torture/compile/981006-1.x
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.c-torture/compile/981006-1.x,v
retrieving revision 1.4
diff -p -c -r1.4 981006-1.x
*** 981006-1.x 2001/11/20 12:00:10 1.4
--- 981006-1.x 2002/03/15 04:55:38
*************** if { [istarget rs6000-*-aix*]
*** 8,13 ****
--- 8,16 ----
|| [istarget sh-*-hms]
|| [istarget sh-*-coff]
|| [istarget h8300*-*-*]
+ || [istarget cris-*-elf*]
+ || [istarget cris-*-aout*]
+ || [istarget mmix-*-*]
} {
set options "-Wuninitialized -Werror"
} else {
Index: gcc.dg/20001009-1.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.dg/20001009-1.c,v
retrieving revision 1.1
diff -p -c -r1.1 20001009-1.c
*** 20001009-1.c 2000/10/10 13:48:00 1.1
--- 20001009-1.c 2002/03/15 04:55:39
***************
*** 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: gcc.dg/20010912-1.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.dg/20010912-1.c,v
retrieving revision 1.2
diff -p -c -r1.2 20010912-1.c
*** 20010912-1.c 2001/09/12 20:58:29 1.2
--- 20010912-1.c 2002/03/15 04:55:39
***************
*** 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: gcc.dg/20020122-4.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.dg/20020122-4.c,v
retrieving revision 1.2
diff -p -c -r1.2 20020122-4.c
*** 20020122-4.c 2002/01/23 00:39:51 1.2
--- 20020122-4.c 2002/03/15 04:55:39
***************
*** 2,7 ****
--- 2,8 ----
(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: gcc.dg/20020312-2.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.dg/20020312-2.c,v
retrieving revision 1.2
diff -p -c -r1.2 20020312-2.c
*** 20020312-2.c 2002/03/13 05:42:40 1.2
--- 20020312-2.c 2002/03/15 04:55:39
***************
*** 56,61 ****
--- 56,63 ----
/* 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: gcc.dg/inline-2.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.dg/inline-2.c,v
retrieving revision 1.1
diff -p -c -r1.1 inline-2.c
*** inline-2.c 2002/01/24 04:01:09 1.1
--- inline-2.c 2002/03/15 04:55:39
***************
*** 2,7 ****
--- 2,8 ----
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)
{
brgds, H-P