From: H.J. Lu Date: Wed, 14 Jan 2015 21:51:09 +0000 (+0000) Subject: Correct target selector in -mfentry tests X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=541c58069135fe7c245eb706220fc9caf95a65f0;p=gcc.git Correct target selector in -mfentry tests -fprofile -mfentry works with PIE if gcrt1.o is compiled with -fPIC. A glibc has been filed, PR 17836, and a glibc patch has been submitted. * gcc.target/i386/fentry-override.c: Properly place {} in target selector. Remove nonpic. * gcc.target/i386/fentry.c: Likewise. From-SVN: r219616 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 644aa862975..061aa7e0810 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2015-01-14 H.J. Lu + + * gcc.target/i386/fentry-override.c: Properly place {} in target + selector. Remove nonpic. + * gcc.target/i386/fentry.c: Likewise. + 2015-01-14 Andrew MacLeod * gcc.dg/atomic-invalid.c: Check for invalid memory model diff --git a/gcc/testsuite/gcc.target/i386/fentry-override.c b/gcc/testsuite/gcc.target/i386/fentry-override.c index 046445440cd..4dd87a8af5c 100644 --- a/gcc/testsuite/gcc.target/i386/fentry-override.c +++ b/gcc/testsuite/gcc.target/i386/fentry-override.c @@ -1,5 +1,5 @@ /* Test -mfentry override */ -/* { dg-do compile { target { *-*-linux* } && { nonpic || ! { ia32 } } } } */ +/* { dg-do compile { target { { *-*-linux* } && { ! { ia32 } } } } } */ /* { dg-options "-mfentry" } */ /* { dg-final { scan-assembler-not "__fentry__" } } */ /* Origin: Andi Kleen */ diff --git a/gcc/testsuite/gcc.target/i386/fentry.c b/gcc/testsuite/gcc.target/i386/fentry.c index d0d70c62efa..3548dd79dbb 100644 --- a/gcc/testsuite/gcc.target/i386/fentry.c +++ b/gcc/testsuite/gcc.target/i386/fentry.c @@ -1,5 +1,5 @@ /* Test -mfentry */ -/* { dg-do compile { target { *-*-linux* } && { nonpic || ! { ia32 } } } } */ +/* { dg-do compile { target { { *-*-linux* } && { ! { ia32 } } } } } */ /* { dg-options "-fprofile -mfentry" } */ /* { dg-final { scan-assembler "__fentry__" } } */ /* Origin: Andi Kleen */