From: Andi Kleen Date: Fri, 19 Sep 2014 17:09:10 +0000 (+0000) Subject: Fix mcount test cases to only run on supported targets X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2bfbb8613327472484037c20d5fc3647e82113dc;p=gcc.git Fix mcount test cases to only run on supported targets * gcc.dg/pg-override.c: Only run on x86 Linux. * gcc.dg/pg.c: Dito. * gcc.target/i386/fentry-override.c: Exclude for PIC. * gcc.target/i386/fentry.c: Dito. From-SVN: r215401 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 747aad8b6a3..89c88ebe9a0 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,10 @@ +2014-09-19 Andi Kleen + + * gcc.dg/pg-override.c: Only run on x86 Linux. + * gcc.dg/pg.c: Dito. + * gcc.target/i386/fentry-override.c: Exclude for PIC. + * gcc.target/i386/fentry.c: Dito. + 2014-09-19 Markus Trippelsdorf PR ipa/61998 diff --git a/gcc/testsuite/gcc.dg/pg-override.c b/gcc/testsuite/gcc.dg/pg-override.c index 60be162f290..9b8d8fa02cd 100644 --- a/gcc/testsuite/gcc.dg/pg-override.c +++ b/gcc/testsuite/gcc.dg/pg-override.c @@ -1,6 +1,6 @@ /* Test -fprofile override */ /* { dg-do compile } */ -/* { dg-options "-fprofile" { target i?86-*-* x86_64-*-* } } */ +/* { dg-options "-fprofile" { target i?86-*-linux* x86_64-*-linux* } } */ /* { dg-final { scan-assembler-not "mcount" } } */ /* Origin: Andi Kleen */ extern void foobar(const char *); diff --git a/gcc/testsuite/gcc.dg/pg.c b/gcc/testsuite/gcc.dg/pg.c index 60be162f290..9b8d8fa02cd 100644 --- a/gcc/testsuite/gcc.dg/pg.c +++ b/gcc/testsuite/gcc.dg/pg.c @@ -1,6 +1,6 @@ /* Test -fprofile override */ /* { dg-do compile } */ -/* { dg-options "-fprofile" { target i?86-*-* x86_64-*-* } } */ +/* { dg-options "-fprofile" { target i?86-*-linux* x86_64-*-linux* } } */ /* { dg-final { scan-assembler-not "mcount" } } */ /* Origin: Andi Kleen */ extern void foobar(const char *); diff --git a/gcc/testsuite/gcc.target/i386/fentry-override.c b/gcc/testsuite/gcc.target/i386/fentry-override.c index 3771f19545a..046445440cd 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 } */ +/* { dg-do compile { target { *-*-linux* } && { nonpic || ! { 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 bd3db13d002..d0d70c62efa 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 } */ +/* { dg-do compile { target { *-*-linux* } && { nonpic || ! { ia32 } } } } */ /* { dg-options "-fprofile -mfentry" } */ /* { dg-final { scan-assembler "__fentry__" } } */ /* Origin: Andi Kleen */