diff options
author | John Wehle <john@feith.com> | 2001-01-12 05:02:00 +0000 |
---|---|---|
committer | John Wehle <wehle@gcc.gnu.org> | 2001-01-12 05:02:00 +0000 |
commit | b660f82f159f6ed9422be8544d3b32ad9ca83a28 (patch) | |
tree | 474f1478ba88b8aa3e456c5c0810c29a0e6b65e2 /gcc/final.c | |
parent | 825b692620b599c2693c11ddbd7cc93dca069e7c (diff) | |
download | gcc-b660f82f159f6ed9422be8544d3b32ad9ca83a28.zip gcc-b660f82f159f6ed9422be8544d3b32ad9ca83a28.tar.gz gcc-b660f82f159f6ed9422be8544d3b32ad9ca83a28.tar.bz2 |
* final.c: (leaf_function_p): Fix typo.
From-SVN: r38935
Diffstat (limited to 'gcc/final.c')
-rw-r--r-- | gcc/final.c | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/gcc/final.c b/gcc/final.c index 0d9d2a3..a04b7bd 100644 --- a/gcc/final.c +++ b/gcc/final.c @@ -1,6 +1,6 @@ /* Convert RTL to assembler code and output it, for GNU compiler. Copyright (C) 1987, 1988, 1989, 1992, 1993, 1994, 1995, 1996, 1997, - 1998, 1999, 2000 Free Software Foundation, Inc. + 1998, 1999, 2000, 2001 Free Software Foundation, Inc. This file is part of GNU CC. @@ -4125,6 +4125,7 @@ int leaf_function_p () { rtx insn; + rtx link; if (profile_flag || profile_block_flag || profile_arc_flag) return 0; @@ -4140,17 +4141,19 @@ leaf_function_p () && ! SIBLING_CALL_P (XVECEXP (PATTERN (insn), 0, 0))) return 0; } - for (insn = current_function_epilogue_delay_list; - insn; - insn = XEXP (insn, 1)) + for (link = current_function_epilogue_delay_list; + link; + link = XEXP (link, 1)) { - if (GET_CODE (XEXP (insn, 0)) == CALL_INSN + insn = XEXP (link, 0); + + if (GET_CODE (insn) == CALL_INSN && ! SIBLING_CALL_P (insn)) 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 - && ! SIBLING_CALL_P (XVECEXP (PATTERN (XEXP (insn, 0)), 0, 0))) + if (GET_CODE (insn) == INSN + && GET_CODE (PATTERN (insn)) == SEQUENCE + && GET_CODE (XVECEXP (PATTERN (insn), 0, 0)) == CALL_INSN + && ! SIBLING_CALL_P (XVECEXP (PATTERN (insn), 0, 0))) return 0; } |