Add dg-require-profiling directives to gcc.target/i386 tests
authorOlivier Hainque <hainque@adacore.com>
Fri, 28 Feb 2020 10:57:20 +0000 (10:57 +0000)
committerOlivier Hainque <hainque@adacore.com>
Fri, 6 Nov 2020 09:55:16 +0000 (09:55 +0000)
This patch adds /* { dg-require-profiling "-pg" } */
to a few tests in gcc.target/i386 that use -pg explicitly, to
prevent them from failing during runs for VxWorks targets.

2020-10-29  Olivier Hainque  <hainque@adacore.com>

gcc/testsuite/
* gcc.target/i386/fentryname1.c: Add dg-require-profiling.
* gcc.target/i386/fentryname2.c: Likewise.
* gcc.target/i386/fentryname3.c: Likewise.
* gcc.target/i386/returninst1.c: Likewise.
* gcc.target/i386/returninst2.c: Likewise.
* gcc.target/i386/returninst3.c: Likewise.

gcc/testsuite/gcc.target/i386/fentryname1.c
gcc/testsuite/gcc.target/i386/fentryname2.c
gcc/testsuite/gcc.target/i386/fentryname3.c
gcc/testsuite/gcc.target/i386/returninst1.c
gcc/testsuite/gcc.target/i386/returninst2.c
gcc/testsuite/gcc.target/i386/returninst3.c

index 1265342b954ff6261a50ca167c8454d0412d3a8f..a9d1c727e86d8983fbf735d1664859ed467b6f6b 100644 (file)
@@ -1,5 +1,6 @@
 /* { dg-do compile } */
 /* { dg-require-effective-target mfentry } */
+/* { dg-require-profiling "-pg" } */
 /* { dg-options "-pg -mfentry -mfentry-name=foo" } */
 /* { dg-final { scan-assembler "call.*foo" } } */
 /* { dg-final { scan-assembler "call.*bar" } } */
index c51c5d1ff7166a70073d841bbb93b2ad24083818..13a43ec27e5ce78e0471b32fee26b4dc6e6a3e9d 100644 (file)
@@ -1,5 +1,6 @@
 /* { dg-do compile } */
 /* { dg-require-effective-target mfentry } */
+/* { dg-require-profiling "-pg" } */
 /* { dg-options "-pg -mfentry -mrecord-mcount -mfentry-section=foo" } */
 /* { dg-final { scan-assembler "section.*foo" } } */
 /* { dg-final { scan-assembler "section.*bar" } } */
index 56881090a9c7c2df5d3cc9542fc9dfe92be5570a..bd7c997c178f0be5655877c48cfb0bbb7ecc97e0 100644 (file)
@@ -1,5 +1,6 @@
 /* { dg-do compile } */
 /* { dg-require-effective-target mfentry } */
+/* { dg-require-profiling "-pg" } */
 /* { dg-options "-pg -mfentry"  } */
 /* { dg-final { scan-assembler "section.*__entry_loc" } } */
 /* { dg-final { scan-assembler "0x0f, 0x1f, 0x44, 0x00, 0x00" } } */
index 133fdeef5aa11215c69fe09b729f626549819b17..74d10c925c3a2fa2c59046ad72a6a65f47946aeb 100644 (file)
@@ -1,5 +1,6 @@
 /* { dg-do compile { target { ! ia32 } } } */
 /* { dg-require-effective-target mfentry } */
+/* { dg-require-profiling "-pg" } */
 /* { dg-options "-pg -mfentry -minstrument-return=call -mrecord-return" } */
 /* { dg-final { scan-assembler "call.*__return__" } } */
 /* { dg-final { scan-assembler "section.*return_loc" } } */
index 3629310a59a706fa2519b51130c2c07125f75de1..e19f0d01f84c77ed263738d0d1464cc1261f0ffd 100644 (file)
@@ -1,5 +1,6 @@
 /* { dg-do compile { target { ! ia32 } } } */
 /* { dg-require-effective-target mfentry } */
+/* { dg-require-profiling "-pg" } */
 /* { dg-options "-pg -mfentry -minstrument-return=nop5 -mrecord-return" } */
 /* { dg-final { scan-assembler-times "0x0f, 0x1f, 0x44, 0x00, 0x00" 3 } } */
 /* { dg-final { scan-assembler "section.*return_loc" } } */
index b84cc77e12bc96270d06842d6ca8897302c126cb..acb8984d38ff9fa76aa15f04e4a9362b53ce810c 100644 (file)
@@ -1,5 +1,6 @@
 /* { dg-do compile { target { ! ia32 } } } */
 /* { dg-require-effective-target mfentry } */
+/* { dg-require-profiling "-pg" } */
 /* { dg-options "-pg -mfentry -minstrument-return=call" } */
 /* { dg-final { scan-assembler-not "call.*__return__" } } */