diff options
author | Jeffrey A Law <law@cygnus.com> | 2000-03-17 14:40:45 -0800 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 2000-03-17 14:40:45 -0800 |
commit | 0a1c58a25ab5df1a3e4596024774641ebae8be2a (patch) | |
tree | 720b4c50b7ea074422601de35cfc7e48ed679e49 /gcc/final.c | |
parent | f1fd8077fd1260362aa134deefc197948da270f8 (diff) | |
download | gcc-0a1c58a25ab5df1a3e4596024774641ebae8be2a.zip gcc-0a1c58a25ab5df1a3e4596024774641ebae8be2a.tar.gz gcc-0a1c58a25ab5df1a3e4596024774641ebae8be2a.tar.bz2 |
Sibling call optimizations.
Co-Authored-By: Richard Henderson <rth@cygnus.com>
From-SVN: r32612
Diffstat (limited to 'gcc/final.c')
-rw-r--r-- | gcc/final.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gcc/final.c b/gcc/final.c index 01dd1ba..90437e0 100644 --- a/gcc/final.c +++ b/gcc/final.c @@ -4019,7 +4019,8 @@ leaf_function_p () return 0; if (GET_CODE (insn) == INSN && GET_CODE (PATTERN (insn)) == SEQUENCE - && GET_CODE (XVECEXP (PATTERN (insn), 0, 0)) == CALL_INSN) + && GET_CODE (XVECEXP (PATTERN (insn), 0, 0)) == CALL_INSN + && ! SIBLING_CALL_P (XVECEXP (PATTERN (insn), 0, 0))) return 0; } for (insn = current_function_epilogue_delay_list; insn; insn = XEXP (insn, 1)) @@ -4028,7 +4029,8 @@ leaf_function_p () return 0; if (GET_CODE (XEXP (insn, 0)) == INSN && GET_CODE (PATTERN (XEXP (insn, 0))) == SEQUENCE - && GET_CODE (XVECEXP (PATTERN (XEXP (insn, 0)), 0, 0)) == CALL_INSN) + && GET_CODE (XVECEXP (PATTERN (XEXP (insn, 0)), 0, 0)) == CALL_INSN + && ! SIBLING_CALL_P (XVECEXP (PATTERN (XEXP (insn, 0)), 0, 0))) return 0; } |