S/390: Add -mbackchain options to fix test failure.
authorDominik Vogt <vogt@linux.vnet.ibm.com>
Fri, 4 Dec 2015 14:35:14 +0000 (14:35 +0000)
committerAndreas Krebbel <krebbel@gcc.gnu.org>
Fri, 4 Dec 2015 14:35:14 +0000 (14:35 +0000)
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

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/Wframe-address.c
gcc/testsuite/gcc.dg/Wno-frame-address.c

index d0bd101608f26ac41ac883ea9a7e01e16a0bd20f..b304173e6886dec8ad5964a02db071f28354ab24 100644 (file)
@@ -1,3 +1,9 @@
+2015-12-04  Dominik Vogt  <vogt@linux.vnet.ibm.com>
+
+       * 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  <vogt@linux.vnet.ibm.com>
 
        * gcc.target/s390/asm-machine-1.c: Updated.
index 7481baf9acdfbdb220c0ab7a5373483274d130a6..29bdfa371d3544446a573aea6350ea7897b9b758 100644 (file)
@@ -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)
index 6409b29d5574cdcf0ab4eafa1f0ba9a87128f93d..e5d078fc7a14ce141b871b596e6615f5197b1e32 100644 (file)
@@ -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.  */