From 0f149d5215a22a03406a82ec1669bf65b329a4df Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Fri, 2 Sep 2005 15:26:59 -0700 Subject: [PATCH] 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 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/gcc.c-torture/execute/frame-address.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) 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) -- 2.11.4.GIT