public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r14-9963] testsuite: i386: Restrict gcc.target/i386/fhardened-1.c etc. to Linux/GNU
@ 2024-04-15  9:16 Rainer Orth
  0 siblings, 0 replies; only message in thread
From: Rainer Orth @ 2024-04-15  9:16 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:7f4ba5480e0ee5c03317d24d3fa858c0966f3464

commit r14-9963-g7f4ba5480e0ee5c03317d24d3fa858c0966f3464
Author: Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
Date:   Mon Apr 15 11:16:23 2024 +0200

    testsuite: i386: Restrict gcc.target/i386/fhardened-1.c etc. to Linux/GNU
    
    The new gcc.target/i386/fhardened-1.c etc. tests FAIL on Solaris/x86 and
    Darwin/x86:
    
    FAIL: gcc.target/i386/fhardened-1.c (test for excess errors)
    FAIL: gcc.target/i386/fhardened-2.c (test for excess errors)
    
    Excess errors:
    cc1: warning: '-fhardened' not supported for this target
    
    Support for -fhardened is restricted to HAVE_FHARDENED_SUPPORT in
    toplev.cc (process_options) which again is only defined for linux*|gnu*
    targets in gcc/configure.ac.
    
    Accordingly, this patch restricts the tests to those two, as is already
    done in gcc.target/i386/cf_check-6.c.
    
    Tested on i386-pc-solaris2.11 and x86_64-pc-linux-gnu.
    
    2024-04-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
    
            gcc/testsuite:
            * gcc.target/i386/fhardened-1.c: Restrict to Linux/GNU.
            * gcc.target/i386/fhardened-2.c: Likewise.

Diff:
---
 gcc/testsuite/gcc.target/i386/fhardened-1.c | 1 +
 gcc/testsuite/gcc.target/i386/fhardened-2.c | 1 +
 2 files changed, 2 insertions(+)

diff --git a/gcc/testsuite/gcc.target/i386/fhardened-1.c b/gcc/testsuite/gcc.target/i386/fhardened-1.c
index 55d1718ff55..f51820e285f 100644
--- a/gcc/testsuite/gcc.target/i386/fhardened-1.c
+++ b/gcc/testsuite/gcc.target/i386/fhardened-1.c
@@ -1,4 +1,5 @@
 /* PR target/114606 */
+/* { dg-do compile { target *-*-linux* *-*-gnu* } } */
 /* { dg-options "-fhardened -O2 -fcf-protection=none" } */
 
 #ifdef __CET__
diff --git a/gcc/testsuite/gcc.target/i386/fhardened-2.c b/gcc/testsuite/gcc.target/i386/fhardened-2.c
index 9b8c1381c19..ed2a6744921 100644
--- a/gcc/testsuite/gcc.target/i386/fhardened-2.c
+++ b/gcc/testsuite/gcc.target/i386/fhardened-2.c
@@ -1,4 +1,5 @@
 /* PR target/114606 */
+/* { dg-do compile { target *-*-linux* *-*-gnu* } } */
 /* { dg-options "-fhardened -O2" } */
 
 #if __CET__ != 3

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-04-15  9:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-04-15  9:16 [gcc r14-9963] testsuite: i386: Restrict gcc.target/i386/fhardened-1.c etc. to Linux/GNU Rainer Orth

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).