diff mbox

[testsuite] : Fix PR44505, gcc.c-torture/execute/frame-address.c FAILs

Message ID AANLkTikqYi-0z5ivvOCNlj4_g6JLWiUNS911MhGWomkH@mail.gmail.com
State New
Headers show

Commit Message

Uros Bizjak June 21, 2010, 6:05 p.m. UTC
Hello!

As proposed by Alan Modra, approved by Jan in the PR.

2010-06-21  Alan Modra  <amodra@gmail.com>

	PR testsuite/44505
	* gcc.c-torture/execute/frame-address.c (check_fa): Avoid
	tail call to check_fa_mid.

Patch was tested on x86_64-pc-linux-gnu {,-m32}. Committed to mainline SVN.

Uros.
diff mbox

Patch

Index: gcc.c-torture/execute/frame-address.c
===================================================================
--- gcc.c-torture/execute/frame-address.c	(revision 161085)
+++ gcc.c-torture/execute/frame-address.c	(working copy)
@@ -25,7 +25,8 @@  int check_fa (char *unused)
 {
   const char c = 0;
 
-  return check_fa_mid (&c);
+  /* Prevent a tail call to check_fa_mid, eliding the current stack frame.  */
+  return check_fa_mid (&c) != 0;
 }
 
 int how_much (void)