]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Revert "testsuite: Disable strub on AIX."
authorAlexandre Oliva <oliva@adacore.com>
Tue, 30 Jan 2024 03:31:18 +0000 (00:31 -0300)
committerAlexandre Oliva <oliva@gnu.org>
Tue, 30 Jan 2024 03:31:18 +0000 (00:31 -0300)
This reverts commit 9773ca519864e2e0706424b805c3314f1fbe7d10.

The fix was in commit cb62101787555b7b32607b431fdfe6fcc8f3830f.

The changes to strub-unsupported* were incorrect, those tests verify
the error messages issued when strub support is properly disabled with
TARGET_HAVE_STRUB_SUPPORT_FOR.

gcc/testsuite/c-c++-common/strub-unsupported-2.c
gcc/testsuite/c-c++-common/strub-unsupported-3.c
gcc/testsuite/c-c++-common/strub-unsupported.c
gcc/testsuite/lib/target-supports.exp

index 321a7e12a8a5ecfde425867b73f3682c9b592c18..3586f4f679dfee282b96a88b8ba492b2effb8ca5 100644 (file)
@@ -1,5 +1,4 @@
 /* { dg-do compile } */
-/* { dg-require-effective-target strub } */
 
 /* Check that, when strub is not supported (so no dg-required-effective-target
    strub above), we report when pointers to strub functions are called.  This
index 2de0fa1ad6404fa57d142dbe91c763ce668a1842..d6fb4c525c4a6ae6fb676d04e490d37f46b2cfd2 100644 (file)
@@ -1,5 +1,4 @@
 /* { dg-do compile } */
-/* { dg-require-effective-target strub } */
 
 /* Check that, when strub is not supported (so no dg-required-effective-target
    strub above), we report when strub functions that are not defined are
index 5fce49e8275fde0aa7031f5e17437c564ec15283..cb5c4049495c426bf86439bcbe11feaffdb6b33f 100644 (file)
@@ -1,5 +1,4 @@
 /* { dg-do compile } */
-/* { dg-require-effective-target strub } */
 
 /* Check that, when strub is not supported (so no dg-required-effective-target
    strub above), we report when strub functions are defined, and when they're
index 8ee082f21f98b71e90af4bc150b6391968ee3953..8aefb320d8cae09a1b70ffb4580dcca9fe56eb51 100644 (file)
@@ -1304,10 +1304,6 @@ proc check_stack_check_available { stack_kind } {
 
 # Return 1 if the target supports stack scrubbing.
 proc check_effective_target_strub {} {
-    # strub is not supported on AIX.
-    if { [istarget powerpc*-*-aix*] } {
-       return 0
-    }
     return [check_no_compiler_messages strub assembly {
        void __attribute__ ((__strub__)) fn (void) {}
     } ""]