]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite: i386: Skip gcc.target/i386/pr113689-1.c etc. on Solaris [PR113909]
authorRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
Wed, 14 Feb 2024 10:39:12 +0000 (11:39 +0100)
committerRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
Wed, 14 Feb 2024 10:39:12 +0000 (11:39 +0100)
gcc.target/i386/pr113689-[1-3].c FAIL on 64-bit Solaris/x86:

FAIL: gcc.target/i386/pr113689-1.c (test for excess errors)
UNRESOLVED: gcc.target/i386/pr113689-1.c compilation failed to produce executable
FAIL: gcc.target/i386/pr113689-2.c (test for excess errors)
UNRESOLVED: gcc.target/i386/pr113689-2.c compilation failed to produce executable
FAIL: gcc.target/i386/pr113689-3.c (test for excess errors)
UNRESOLVED: gcc.target/i386/pr113689-3.c compilation failed to produce executable

with

Excess errors:
/vol/gcc/src/hg/master/local/gcc/testsuite/gcc.target/i386/pr113689-1.c:43:1: sorry, unimplemented: no register available for profiling '-mcmodel=large'

Excess errors:
/vol/gcc/src/hg/master/local/gcc/testsuite/gcc.target/i386/pr113689-2.c:26:1: sorry, unimplemented: profiling '-mcmodel=large' with PIC is not supported

Excess errors:
/vol/gcc/src/hg/master/local/gcc/testsuite/gcc.target/i386/pr113689-3.c:15:1: sorry, unimplemented: profiling '-mcmodel=large' with PIC is not supported

This happens because i386/sol2.h doesn't define NO_PROFILE_COUNTERS.

So this patch just skips the tests on Solaris.

Tested on i386-pc-solaris2.11.

2024-02-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>

gcc/testsuite:
PR target/113909
* gcc.target/i386/pr113689-1.c: Skip on Solaris.
* gcc.target/i386/pr113689-2.c: Likewise.
* gcc.target/i386/pr113689-3.c: Likewise.

gcc/testsuite/gcc.target/i386/pr113689-1.c
gcc/testsuite/gcc.target/i386/pr113689-2.c
gcc/testsuite/gcc.target/i386/pr113689-3.c

index 16b513c9a797eb3f4f81a99474f2fe55e0d90329..9b8474ed9330cb8298ff105b4008f016fd47cc58 100644 (file)
@@ -1,6 +1,7 @@
 /* { dg-do run { target { lp64 && fpic } } } */
 /* { dg-options "-O2 -fno-pic -fprofile -mcmodel=large" } */
 /* { dg-skip-if "PR90698" { *-*-darwin* } } */
+/* { dg-skip-if "PR113909" { *-*-solaris2* } } */
 
 #include <stdarg.h>
 
index 3613c283d0c6d46bf4612b754b9e3a1c31131a9e..58688b9a387c84bac14d6217f0d5607b978c155b 100644 (file)
@@ -1,6 +1,7 @@
 /* { dg-do run { target { lp64 && fpic } } } */
 /* { dg-options "-O2 -fpic -fprofile -mcmodel=large" } */
 /* { dg-skip-if "PR90698" { *-*-darwin* } } */
+/* { dg-skip-if "PR113909" { *-*-solaris2* } } */
 
 __attribute__((noipa))
 void
index 39373c11dfa76a4e21f98b0a8ef2e23ca8eec1b8..14c906239f9dbcdceefa79f8bf9b8caf2f4b74ac 100644 (file)
@@ -1,6 +1,7 @@
 /* { dg-do run { target { lp64 && fpic } } } */
 /* { dg-options "-O2 -fpic -fprofile -mcmodel=large" } */
 /* { dg-skip-if "PR90698" { *-*-darwin* } } */
+/* { dg-skip-if "PR113909" { *-*-solaris2* } } */
 
 #include <stdarg.h>