Commit 6bfd73a6 by Richard Henderson Committed by Richard Henderson

re PR bootstrap/50018 (fixup_args_size_notes ICE breaks m68k-linux bootstrap)

PR bootstrap/50018
        * expr.c (fixup_args_size_notes): Accept and ignore normal calls.

From-SVN: r177669
parent 022676dc
2011-08-11 Richard Henderson <rth@redhat.com>
PR bootstrap/50018
* expr.c (fixup_args_size_notes): Accept and ignore normal calls.
2011-08-11 Richard Guenther <rguenther@suse.de> 2011-08-11 Richard Guenther <rguenther@suse.de>
* lto-cgraph.c (input_node): Use DECL_BUILT_IN. * lto-cgraph.c (input_node): Use DECL_BUILT_IN.
......
...@@ -3567,8 +3567,10 @@ fixup_args_size_notes (rtx prev, rtx last, int end_args_size) ...@@ -3567,8 +3567,10 @@ fixup_args_size_notes (rtx prev, rtx last, int end_args_size)
/* Look for a call_pop pattern. */ /* Look for a call_pop pattern. */
if (CALL_P (insn)) if (CALL_P (insn))
{ {
/* We're not supposed to see non-pop call patterns here. */ /* We have to allow non-call_pop patterns for the case
gcc_assert (GET_CODE (pat) == PARALLEL); of emit_single_push_insn of a TLS address. */
if (GET_CODE (pat) != PARALLEL)
continue;
/* All call_pop have a stack pointer adjust in the parallel. /* All call_pop have a stack pointer adjust in the parallel.
The call itself is always first, and the stack adjust is The call itself is always first, and the stack adjust is
...@@ -3583,7 +3585,8 @@ fixup_args_size_notes (rtx prev, rtx last, int end_args_size) ...@@ -3583,7 +3585,8 @@ fixup_args_size_notes (rtx prev, rtx last, int end_args_size)
break; break;
} }
/* We'd better have found the stack pointer adjust. */ /* We'd better have found the stack pointer adjust. */
gcc_assert (i > 0); if (i == 0)
continue;
/* Fall through to process the extracted SET and DEST /* Fall through to process the extracted SET and DEST
as if it was a standalone insn. */ as if it was a standalone insn. */
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment