-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
+2015-01-14 H.J. Lu <hongjiu.lu@intel.com>
+
+ * gcc.target/i386/fentry-override.c: Properly place {} in target
+ selector. Remove nonpic.
+ * gcc.target/i386/fentry.c: Likewise.
+
2015-01-14 Andrew MacLeod <amacleod@redhat.com>
* gcc.dg/atomic-invalid.c: Check for invalid memory model
/* 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 */
/* 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 */