From: Alexandre Oliva Date: Wed, 24 May 2023 06:07:52 +0000 (-0300) Subject: [testsuite] require profiling for -pg X-Git-Tag: basepoints/gcc-15~8953 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=03a3736f9ed219bdb886ccf96e28307718f3ceba;p=thirdparty%2Fgcc.git [testsuite] require profiling for -pg 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. --- diff --git a/gcc/testsuite/gcc.target/i386/mcount_pic.c b/gcc/testsuite/gcc.target/i386/mcount_pic.c index 5546933d1946..732be66b7b33 100644 --- a/gcc/testsuite/gcc.target/i386/mcount_pic.c +++ b/gcc/testsuite/gcc.target/i386/mcount_pic.c @@ -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 () diff --git a/gcc/testsuite/gcc.target/i386/pr104447.c b/gcc/testsuite/gcc.target/i386/pr104447.c index bf11e8696e68..cb618c7b8bb3 100644 --- a/gcc/testsuite/gcc.target/i386/pr104447.c +++ b/gcc/testsuite/gcc.target/i386/pr104447.c @@ -1,4 +1,5 @@ /* { dg-do compile } */ +/* { dg-require-profiling "-pg" } */ /* { dg-options "-O2 -pg" } */ int