Commit 7d471c90 by Dominik Vogt Committed by Andreas Krebbel

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
parent 7763d972
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.
* gcc.target/s390/asm-machine-2.c: Updated.
* gcc.target/s390/asm-machine-3.c: Updated.
......
/* { dg-do compile } */
/* { dg-options "-Wframe-address" } */
/* { dg-additional-options "-mbackchain" { target { s390*-*-* } } } */
void* __attribute__ ((noclone, noinline))
test_builtin_frame_address (unsigned i)
......
/* { 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. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment