]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[testsuite] require profiling for -pg
authorAlexandre Oliva <oliva@adacore.com>
Wed, 24 May 2023 06:07:52 +0000 (03:07 -0300)
committerAlexandre Oliva <oliva@gnu.org>
Thu, 25 May 2023 02:41:12 +0000 (23:41 -0300)
Fix two tests that use -pg but don't declare their requirement for
profiling support.

for  gcc/testsuite/ChangeLog

* gcc.target/i386/mcount_pic.c: Add dg-require-profiling.
* gcc.target/i386/pr104447.c: Likewise.

gcc/testsuite/gcc.target/i386/mcount_pic.c
gcc/testsuite/gcc.target/i386/pr104447.c

index 5546933d1946db6353ea3cfd32d8c373f7726b64..732be66b7b33d16d64633295b8fa4d13f5ac770b 100644 (file)
@@ -3,6 +3,7 @@
 /* { dg-do run } */
 /* { dg-require-effective-target fpic } */
 /* { dg-require-effective-target ia32 } */
+/* { dg-require-profiling "-pg" } */
 /* { dg-options "-O2 -fpic -pg -save-temps" } */
 
 int main ()
index bf11e8696e68f1b3f82bd4be0e244a9ca2ee5ea7..cb618c7b8bb32445ad7ffacc7f7a836e90a2752a 100644 (file)
@@ -1,4 +1,5 @@
 /* { dg-do compile } */
+/* { dg-require-profiling "-pg" } */
 /* { dg-options "-O2 -pg" } */
 
 int