PATCH: PR testsuite/45719: Fix gcc.target/i386/pad-3.c
Richard Guenther
richard.guenther@gmail.com
Sat Sep 18 21:40:00 GMT 2010
On Sat, Sep 18, 2010 at 6:26 PM, H.J. Lu <hongjiu.lu@intel.com> wrote:
> Darwin enables PIC by default. I checked in this patch to pass -fno-pic
> to gcc.target/i386/pad-3.c as an obvious fix.
You should use { dg-require-effective-target nonpic } instead.
Richard.
>
> H.J.
> --
> diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
> index f1193f9..c25cf28 100644
> --- a/gcc/testsuite/ChangeLog
> +++ b/gcc/testsuite/ChangeLog
> @@ -1,3 +1,8 @@
> +2010-09-18 H.J. Lu <hongjiu.lu@intel.com>
> +
> + PR testsuite/45719
> + * gcc.target/i386/pad-3.c: Pass -fno-pic.
> +
> 2010-09-17 H.J. Lu <hongjiu.lu@intel.com>
>
> * gcc.target/i386/pad-1.c: New.
> diff --git a/gcc/testsuite/gcc.target/i386/pad-3.c b/gcc/testsuite/gcc.target/i386/pad-3.c
> index 52442b4..28db2cc 100644
> --- a/gcc/testsuite/gcc.target/i386/pad-3.c
> +++ b/gcc/testsuite/gcc.target/i386/pad-3.c
> @@ -1,5 +1,5 @@
> /* { dg-do compile } */
> -/* { dg-options "-O2 -fomit-frame-pointer -march=atom -S" } */
> +/* { dg-options "-O2 -fomit-frame-pointer -march=atom -fno-pic -S" } */
> /* { dg-final { scan-assembler-not "nop" } } */
> /* { dg-final { scan-assembler-not "rep" } } */
>
>
More information about the Gcc-patches
mailing list