From patchwork Sat Sep 18 16:26:51 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: PATCH: PR testsuite/45719: Fix gcc.target/i386/pad-3.c From: "H.J. Lu" X-Patchwork-Id: 65131 Message-Id: <20100918162651.GA25740@intel.com> To: gcc-patches@gcc.gnu.org Date: Sat, 18 Sep 2010 09:26:51 -0700 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. 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 + + PR testsuite/45719 + * gcc.target/i386/pad-3.c: Pass -fno-pic. + 2010-09-17 H.J. Lu * 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" } } */