981006-1.c: Use the non-PIC options if PIC is not supported.

gcc/testsuite/
	* gcc.c-torture/compile/981006-1.c: Use the non-PIC options if
	PIC is not supported.
	* gcc.dg/20020103-1.c: Add dg-require-effective-target fpic.
	* gcc.dg/20020426-2.c: Likewise.
	* gcc.dg/pr28243.c: Likewise.
	* gcc.dg/visibility-11.c: Likewise.
	* gcc.dg/tls/opt-9.c: Likewise.
	* gcc.dg/tls/opt-10.c: Likewise.
	* gcc.dg/tls/pic-1.c: Likewise.
	* gcc.dg/tls/struct-1.c: Likewise.
	* gcc.target/i386/20000807-1.c: Likewise.
	* gcc.target/i386/20000904-1.c: Likewise.
	* gcc.target/i386/20011119-1.c: Likewise.
	* gcc.target/i386/990213-2.c: Likewise.
	* gcc.target/i386/990214-1.c: Likewise.
	* gcc.target/i386/compress-float-387-pic.c: Likewise.
	* gcc.target/i386/compress-float-sse-pic.c: Likewise.
	* gcc.target/i386/pic-1.c: Likewise.
	* gcc.target/i386/pr21518.c: Likewise.
	* gcc.target/i386/pr23098.c: Likewise.
	* gcc.target/i386/pr23943.c: Likewise.

From-SVN: r122836
This commit is contained in:
Richard Sandiford 2007-03-12 08:59:07 +00:00 committed by Richard Sandiford
parent d4e702949e
commit 6477126a2a
21 changed files with 44 additions and 1 deletions

View File

@ -1,3 +1,27 @@
2007-03-12 Richard Sandiford <richard@codesourcery.com>
* gcc.c-torture/compile/981006-1.c: Use the non-PIC options if
PIC is not supported.
* gcc.dg/20020103-1.c: Add dg-require-effective-target fpic.
* gcc.dg/20020426-2.c: Likewise.
* gcc.dg/pr28243.c: Likewise.
* gcc.dg/visibility-11.c: Likewise.
* gcc.dg/tls/opt-9.c: Likewise.
* gcc.dg/tls/opt-10.c: Likewise.
* gcc.dg/tls/pic-1.c: Likewise.
* gcc.dg/tls/struct-1.c: Likewise.
* gcc.target/i386/20000807-1.c: Likewise.
* gcc.target/i386/20000904-1.c: Likewise.
* gcc.target/i386/20011119-1.c: Likewise.
* gcc.target/i386/990213-2.c: Likewise.
* gcc.target/i386/990214-1.c: Likewise.
* gcc.target/i386/compress-float-387-pic.c: Likewise.
* gcc.target/i386/compress-float-sse-pic.c: Likewise.
* gcc.target/i386/pic-1.c: Likewise.
* gcc.target/i386/pr21518.c: Likewise.
* gcc.target/i386/pr23098.c: Likewise.
* gcc.target/i386/pr23943.c: Likewise.
2007-03-11 Mark Mitchell <mark@codesourcery.com>
PR c++/31038

View File

@ -6,7 +6,7 @@
/* { dg-do assemble } */
/* For MIPS at least, pic is needed to trigger the problem. */
/* { dg-options "-w -Wuninitialized -Werror -fpic" } */
/* { dg-options "-w -Wuninitialized -Werror" { target rs6000-*-aix* powerpc*-*-aix* arm*-*-* xscale*-*-* strongarm*-*-* fr30-*-* sh-*-hms sh-*-coff h8300*-*-* cris-*-elf* cris-*-aout* mmix-*-* } } */
/* { dg-options "-w -Wuninitialized -Werror" { target { { rs6000-*-aix* powerpc*-*-aix* arm*-*-* xscale*-*-* strongarm*-*-* fr30-*-* sh-*-hms sh-*-coff h8300*-*-* cris-*-elf* cris-*-aout* mmix-*-* } || { ! fpic } } } } */
int foo (int a, int b)
{

View File

@ -1,6 +1,7 @@
/* Verify that constant equivalences get reloaded properly, either by being
spilled to the stack, or regenerated, but not dropped to memory. */
/* { dg-do compile { target { { i?86-*-* rs6000-*-* alpha*-*-* x86_64-*-* } || { powerpc*-*-* && ilp32 } } } } */
/* { dg-require-effective-target fpic } */
/* { dg-options "-O2 -fpic -fno-omit-frame-pointer -fno-asynchronous-unwind-tables" } */
/* { dg-final { scan-assembler-not "LC\[0-9\]" { xfail powerpc*-*-* } } } */

View File

@ -3,6 +3,7 @@
/* { dg-do run } */
/* { dg-options "-O2" } */
/* { dg-options "-O2 -frename-registers -fomit-frame-pointer -fPIC -mtune=i686" { target { { i?86-*-* x86_64-*-* } && ilp32 } } } */
/* { dg-require-effective-target fpic } */
/* { 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);

View File

@ -2,6 +2,7 @@
/* Reported by Mike Frysinger <vapier@gentoo.org> */
/* { dg-do compile } */
/* { dg-require-effective-target fpic } */
/* { dg-options "-O2 -ftracer -fPIC" } */
struct displayfuncs {

View File

@ -1,4 +1,5 @@
/* { dg-do compile } */
/* { dg-require-effective-target fpic } */
/* { dg-options "-O3 -fpic" } */
/* The web pass was creating unrecognisable pic_load_dot_plus_four insns

View File

@ -1,5 +1,6 @@
/* PR 21412 */
/* { dg-do compile */
/* { dg-require-effective-target fpic } */
/* { dg-options "-O2 -fPIC" } */
struct S { int x[10]; };

View File

@ -1,4 +1,5 @@
/* { dg-do compile } */
/* { dg-require-effective-target fpic } */
/* { dg-options "-O2 -fpic -ftls-model=global-dynamic" } */
extern __thread long e1;

View File

@ -1,6 +1,7 @@
/* This testcase ICEd on IA-32 because the backend was inconsistent whether
to allow addends for @dtpoff relocs or not. */
/* { dg-do compile } */
/* { dg-require-effective-target fpic } */
/* { dg-options "-O2 -fpic" } */
struct S {

View File

@ -5,6 +5,7 @@
/* { dg-do compile { target i?86-*-* x86_64-*-* } } */
/* { dg-skip-if "" { *-*-darwin* } { "*" } { "" } } */
/* { dg-require-visibility "" } */
/* { dg-require-effective-target fpic } */
/* { dg-options "-Os -fpic -mstringop-strategy=libcall" } */
/* { dg-final { scan-assembler "memcpy@PLT" } } */

View File

@ -1,4 +1,5 @@
/* { dg-do compile { target i?86-*-* x86_64-*-* } } */
/* { dg-require-effective-target fpic } */
/* { dg-options "-Os -fpic" } */
#include <string.h>

View File

@ -1,4 +1,5 @@
/* { dg-do compile { target i?86-*-* x86_64-*-* } } */
/* { dg-require-effective-target fpic } */
/* { dg-options "-O0 -fpic" } */
static struct {

View File

@ -1,6 +1,7 @@
/* Test for reload failing to eliminate from argp to sp. */
/* { dg-do run { target i?86-*-* x86_64-*-* } } */
/* { dg-require-effective-target ilp32 } */
/* { dg-require-effective-target fpic } */
/* { dg-skip-if "" { "*-*-*" } { "-fpic" "-fPIC" } { "" } } */
/* { dg-skip-if "PIC default" { "*-*-darwin*" } { "*" } { "" } } */
/* { dg-options "-O2 -fomit-frame-pointer" } */

View File

@ -1,4 +1,5 @@
/* { dg-do compile { target i?86-*-* x86_64-*-* } } */
/* { dg-require-effective-target fpic } */
/* { dg-options "-fPIC" } */
struct normal_encoding {};

View File

@ -1,4 +1,5 @@
/* { dg-do compile { target i?86-*-* x86_64-*-* } } */
/* { dg-require-effective-target fpic } */
/* { dg-options "-fPIC" } */
typedef int int64_t __attribute__ ((__mode__ ( __DI__ ))) ;

View File

@ -1,5 +1,6 @@
/* { dg-do compile { target i?86*-*-* } } */
/* { dg-require-effective-target ilp32 } */
/* { dg-require-effective-target fpic } */
/* { dg-options "-O2 -march=pentium4 -mtune=prescott -mfpmath=387 -fpic" } */
double foo (double x) {
return x + 1.75;

View File

@ -1,5 +1,6 @@
/* { dg-do compile { target i?86*-*-* } } */
/* { dg-require-effective-target ilp32 } */
/* { dg-require-effective-target fpic } */
/* { dg-options "-O2 -march=pentium4 -mtune=prescott -mfpmath=sse -fpic" } */
double foo (double x) {
return x + 1.75;

View File

@ -1,6 +1,7 @@
/* PR target/8340 */
/* { dg-do compile { target i?86-*-* x86_64-*-* } } */
/* { dg-require-effective-target ilp32 } */
/* { dg-require-effective-target fpic } */
/* { dg-options "-fPIC" } */
int foo ()

View File

@ -1,6 +1,7 @@
/* { dg-do compile } */
/* { dg-options "-O2 -fPIC -fno-tree-pre" } */
/* { dg-require-effective-target ilp32 } */
/* { dg-require-effective-target fpic } */
extern void __attribute__ ((regparm (3)))
drawPointsLines (char type, int first, int *dd);

View File

@ -3,6 +3,7 @@
/* { dg-options "-O2 -fPIC" } */
/* { dg-final { scan-assembler-not "\.LC\[0-9\]" } } */
/* { dg-require-effective-target ilp32 } */
/* { dg-require-effective-target fpic } */
double foo (float);

View File

@ -1,6 +1,7 @@
/* This used to ICE in side_effects_p, due to a problem in cse.c.
Origin: marcus at jet dot franken dot de. */
/* { dg-do compile { target i?86-*-* x86_64-*-* } } */
/* { dg-require-effective-target fpic } */
/* { dg-options "-O2 -fPIC" } */
typedef long unsigned int size_t;