pr113689 testcases use -fprofile without testing for profiling
support.  Fix them.

Regstrapped on x86_64-linux-gnu, also tested with gcc-14 targeting
x86_64-elf.  Ok to install?


for  gcc/testsuite/ChangeLog

        PR target/113689
        * gcc.target/i386/pr113689-1.c: Require profiling support.
        * gcc.target/i386/pr113689-2.c: Likewise.
        * gcc.target/i386/pr113689-3.c: Likewise.
---
 gcc/testsuite/gcc.target/i386/pr113689-1.c |    1 +
 gcc/testsuite/gcc.target/i386/pr113689-2.c |    1 +
 gcc/testsuite/gcc.target/i386/pr113689-3.c |    1 +
 3 files changed, 3 insertions(+)

diff --git a/gcc/testsuite/gcc.target/i386/pr113689-1.c 
b/gcc/testsuite/gcc.target/i386/pr113689-1.c
index 0424db2dfdca0..0ed911393eeac 100644
--- a/gcc/testsuite/gcc.target/i386/pr113689-1.c
+++ b/gcc/testsuite/gcc.target/i386/pr113689-1.c
@@ -1,5 +1,6 @@
 /* { dg-do run { target { lp64 && fpic } } } */
 /* { dg-options "-O2 -fno-pic -no-pie -fprofile -mcmodel=large" } */
+/* { dg-require-profiling "-fprofile" } */
 /* { dg-skip-if "PR90698" { *-*-darwin* } } */
 /* { dg-skip-if "PR113909" { *-*-solaris2* } } */
 
diff --git a/gcc/testsuite/gcc.target/i386/pr113689-2.c 
b/gcc/testsuite/gcc.target/i386/pr113689-2.c
index 58688b9a387c8..decc44a44fb56 100644
--- a/gcc/testsuite/gcc.target/i386/pr113689-2.c
+++ b/gcc/testsuite/gcc.target/i386/pr113689-2.c
@@ -1,5 +1,6 @@
 /* { dg-do run { target { lp64 && fpic } } } */
 /* { dg-options "-O2 -fpic -fprofile -mcmodel=large" } */
+/* { dg-require-profiling "-fprofile" } */
 /* { dg-skip-if "PR90698" { *-*-darwin* } } */
 /* { dg-skip-if "PR113909" { *-*-solaris2* } } */
 
diff --git a/gcc/testsuite/gcc.target/i386/pr113689-3.c 
b/gcc/testsuite/gcc.target/i386/pr113689-3.c
index 14c906239f9db..a904feec13f04 100644
--- a/gcc/testsuite/gcc.target/i386/pr113689-3.c
+++ b/gcc/testsuite/gcc.target/i386/pr113689-3.c
@@ -1,5 +1,6 @@
 /* { dg-do run { target { lp64 && fpic } } } */
 /* { dg-options "-O2 -fpic -fprofile -mcmodel=large" } */
+/* { dg-require-profiling "-fprofile" } */
 /* { dg-skip-if "PR90698" { *-*-darwin* } } */
 /* { dg-skip-if "PR113909" { *-*-solaris2* } } */
 


-- 
Alexandre Oliva, happy hacker            https://FSFLA.org/blogs/lxo/
   Free Software Activist                   GNU Toolchain Engineer
More tolerance and less prejudice are key for inclusion and diversity
Excluding neuro-others for not behaving ""normal"" is *not* inclusive

Reply via email to