AIX does not support stack scrubbing. Set strub as unsupported on AIX
and ensure that testcases check for strub support.
gcc/testsuite/ChangeLog:
* c-c++-common/strub-unsupported-2.c: Require strub.
* c-c++-common/strub-unsupported-3.c: Same.
* c-c++-common/strub-unsupported.c: Same.
* lib/target-supports.exp (check_effective_target_strub): Return 0
for AIX.
Signed-off-by: David Edelsohn <dje.gcc@gmail.com>
/* { 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
/* { 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
/* { 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
# 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) {}
} ""]