From: Richard Henderson Date: Fri, 2 Sep 2005 22:26:59 +0000 (-0700) Subject: frame-address.c (check_fa_mid): Avoid tail call to check_fa_work. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0f149d5215a22a03406a82ec1669bf65b329a4df;p=gcc.git frame-address.c (check_fa_mid): Avoid tail call to check_fa_work. * gcc.c-torture/execute/frame-address.c (check_fa_mid): Avoid tail call to check_fa_work. From-SVN: r103797 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 042a5315321..ab29708f893 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2005-09-02 Richard Henderson + + * gcc.c-torture/execute/frame-address.c (check_fa_mid): Avoid + tail call to check_fa_work. + 2005-09-02 Mark Mitchell PR c++/21687 diff --git a/gcc/testsuite/gcc.c-torture/execute/frame-address.c b/gcc/testsuite/gcc.c-torture/execute/frame-address.c index bf9443c018b..942f5c5d653 100644 --- a/gcc/testsuite/gcc.c-torture/execute/frame-address.c +++ b/gcc/testsuite/gcc.c-torture/execute/frame-address.c @@ -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)