OSDN Git Service

* gcc.c-torture/execute/frame-address.c (check_fa_mid): Avoid
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 2 Sep 2005 22:26:59 +0000 (22:26 +0000)
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 2 Sep 2005 22:26:59 +0000 (22:26 +0000)
        tail call to check_fa_work.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@103797 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/frame-address.c

index 042a531..ab29708 100644 (file)
@@ -1,3 +1,8 @@
+2005-09-02  Richard Henderson  <rth@redhat.com>
+
+       * gcc.c-torture/execute/frame-address.c (check_fa_mid): Avoid
+       tail call to check_fa_work.
+
 2005-09-02  Mark Mitchell  <mark@codesourcery.com>
 
        PR c++/21687
index bf9443c..942f5c5 100644 (file)
@@ -17,7 +17,8 @@ int check_fa_mid (const char *c)
 {
   const char *f = __builtin_frame_address (0);
 
-  return check_fa_work (c, f);
+  /* Prevent a tail call to check_fa_work, eliding the current stack frame.  */
+  return check_fa_work (c, f) != 0;
 }
 
 int check_fa (char *unused)