re PR rtl-optimization/52773 (internal error: in replace_pseudos_in, at reload1.c...
authorBernd Schmidt <bernds@codesourcery.com>
Sat, 17 Jan 2015 07:35:40 +0000 (07:35 +0000)
committerJeff Law <law@gcc.gnu.org>
Sat, 17 Jan 2015 07:35:40 +0000 (00:35 -0700)
commit0ed4bf92c502a4b9f8a310313fc52f4ff2059041
treec19aa88b81db253df6cd1adc638ebed96d974607
parentbd5fb71cd07c61218d58cba2e779648c0ca8b3a2
re PR rtl-optimization/52773 (internal error: in replace_pseudos_in, at reload1.c:577)

PR rtl-optimization/52773
* calls.c (emit_library_call_value): When pushing arguments use
stack_pointer_rtx rather than virtual_outgoing_args_rtx in
CALL_INSN_FUNCTION_USAGE.  Only emit one of use of the magic
stack pointer reference into CALL_INSN_FUNCTION_USAGE.

PR rtl-optimization/52773
* gcc.c-torture/compile/pr52773.c: New test.

From-SVN: r219796
gcc/ChangeLog
gcc/calls.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/pr52773.c [new file with mode: 0644]