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
This commit is contained in:
Richard Henderson 2005-09-02 15:26:59 -07:00 committed by Richard Henderson
parent 810d4c7ba0
commit 0f149d5215
2 changed files with 7 additions and 1 deletions

View 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

View 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)