Fix bug in reloads_conflict

From-SVN: r30701
This commit is contained in:
Bernd Schmidt 1999-11-29 11:51:16 +00:00 committed by Bernd Schmidt
parent e1306f499c
commit ca1a4af124
2 changed files with 5 additions and 1 deletions

View File

@ -30,6 +30,10 @@
* unroll.c (loop_iterations): Don't abort if iteration variable
was made by loop.
From Joern Rennecke:
* reload1.c (reloads_conflict): Reverse test comparing operand
numbers when testing for conflict between output/outaddr reloads.
1999-11-29 David S. Miller <davem@redhat.com>
* config/sparc/sparc.c (init_cumulative_args): Fix type of third

View File

@ -5232,7 +5232,7 @@ reloads_conflict (r1, r2)
return (r2_type == RELOAD_FOR_INSN || r2_type == RELOAD_FOR_OUTPUT
|| ((r2_type == RELOAD_FOR_OUTPUT_ADDRESS
|| r2_type == RELOAD_FOR_OUTADDR_ADDRESS)
&& r2_opnum >= r1_opnum));
&& r2_opnum <= r1_opnum));
case RELOAD_FOR_INSN:
return (r2_type == RELOAD_FOR_INPUT || r2_type == RELOAD_FOR_OUTPUT