From dd5978b2f0087579c25486f97e578c9eb76f3449 Mon Sep 17 00:00:00 2001 From: Alexandre Oliva Date: Thu, 30 Jan 2025 19:43:46 -0300 Subject: [testsuite] require profiling support [PR113689] pr113689 testcases use -fprofile without testing for profiling support. Fix them. 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(+) (limited to 'gcc') diff --git a/gcc/testsuite/gcc.target/i386/pr113689-1.c b/gcc/testsuite/gcc.target/i386/pr113689-1.c index 0424db2..0ed9113 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 58688b9..decc44a 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 14c9062..a904fee 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* } } */ -- cgit v1.1