From: Dominik Vogt Date: Fri, 4 Dec 2015 14:35:14 +0000 (+0000) Subject: S/390: Add -mbackchain options to fix test failure. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7d471c90332bb58e3668a5aaeb24640f7d4ca821;p=gcc.git S/390: Add -mbackchain options to fix test failure. gcc/testsuite/ChangeLog * gcc.dg/Wframe-address.c: S/390 requires the -mbackchain option to access arbitrary stack frames. * gcc.dg/Wno-frame-address.c: Likewise. From-SVN: r231273 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index d0bd101608f..b304173e688 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2015-12-04 Dominik Vogt + + * gcc.dg/Wframe-address.c: S/390 requires the -mbackchain option to + access arbitrary stack frames. + * gcc.dg/Wno-frame-address.c: Likewise. + 2015-12-04 Dominik Vogt * gcc.target/s390/asm-machine-1.c: Updated. diff --git a/gcc/testsuite/gcc.dg/Wframe-address.c b/gcc/testsuite/gcc.dg/Wframe-address.c index 7481baf9acd..29bdfa371d3 100644 --- a/gcc/testsuite/gcc.dg/Wframe-address.c +++ b/gcc/testsuite/gcc.dg/Wframe-address.c @@ -1,5 +1,6 @@ /* { dg-do compile } */ /* { dg-options "-Wframe-address" } */ +/* { dg-additional-options "-mbackchain" { target { s390*-*-* } } } */ void* __attribute__ ((noclone, noinline)) test_builtin_frame_address (unsigned i) diff --git a/gcc/testsuite/gcc.dg/Wno-frame-address.c b/gcc/testsuite/gcc.dg/Wno-frame-address.c index 6409b29d557..e5d078fc7a1 100644 --- a/gcc/testsuite/gcc.dg/Wno-frame-address.c +++ b/gcc/testsuite/gcc.dg/Wno-frame-address.c @@ -1,6 +1,7 @@ /* { dg-do compile } */ /* { dg-skip-if "Cannot access arbitrary stack frames" { arm*-*-* hppa*-*-* visium-*-* } } */ /* { dg-options "-Werror" } */ +/* { dg-additional-options "-mbackchain" { target { s390*-*-* } } } */ /* Verify that -Wframe-address is not enabled by default by enabling -Werror and verifying the test still compiles. */