reload.c (find_reloads): Do not use the mode specified in the insn pattern as reload...
authorUlrich Weigand <uweigand@de.ibm.com>
Sat, 1 Feb 2003 01:01:38 +0000 (01:01 +0000)
committerUlrich Weigand <uweigand@gcc.gnu.org>
Sat, 1 Feb 2003 01:01:38 +0000 (01:01 +0000)
commit2f278625ee254d3293798efeb57003a42fc2871a
tree6695bfe875cd231e5b9de23862d2deddab1b9692
parente4b9b5fb09bda446289e62fd40feb679187ad901
reload.c (find_reloads): Do not use the mode specified in the insn pattern as reload mode for address...

gcc/
* reload.c (find_reloads): Do not use the mode specified in the insn
pattern as reload mode for address operands.  Do not generate optional
reloads for operands where a mandatory reload was already pushed.
Generate optional reloads only in the final pass though find_reloads.
(have_replacement_p): New function.

gcc/testsuite/
* gcc.dg/20030129-1.c: New test.

From-SVN: r62225
gcc/ChangeLog
gcc/reload.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/20030129-1.c [new file with mode: 0644]