This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[Patch PR/19228]: fix testcases when using -fpic/-fPIC
- From: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- To: gcc-patches at gcc dot gnu dot org
- Cc: janis187 at us dot ibm dot com
- Date: Wed, 5 Jan 2005 14:03:31 -0500 (EST)
- Subject: [Patch PR/19228]: fix testcases when using -fpic/-fPIC
Same as last patch, fix testcase when using -fpic/-fPIC.
Okay for mainline?
Okay for 3.3/3.4 when those branches get dg-skip-if?
Thanks,
--Kaveh
2005-01-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* gcc.dg/20011119-1.c: Bypass test on x86 when using -fpic/-fPIC.
diff -rup orig/egcc-CVS20050104/gcc/testsuite/gcc.dg/20011119-1.c egcc-CVS20050104/gcc/testsuite/gcc.dg/20011119-1.c
--- orig/egcc-CVS20050104/gcc/testsuite/gcc.dg/20011119-1.c 2004-11-17 12:21:44.000000000 -0500
+++ egcc-CVS20050104/gcc/testsuite/gcc.dg/20011119-1.c 2005-01-05 13:53:44.000000000 -0500
@@ -1,6 +1,6 @@
/* Test for reload failing to eliminate from argp to sp. */
/* { dg-do run { target i?86-*-* } } */
-/* { dg-skip-if "" { i?86-*-* } { "-m64" } { "" } } */
+/* { dg-skip-if "" { i?86-*-* } { "-m64" "-fpic" "-fPIC" } { "" } } */
/* { dg-options "-O2 -fomit-frame-pointer" } */
static int ustrsize (const char *s);