summaryrefslogtreecommitdiffstats
path: root/gcc/reload.c
diff options
context:
space:
mode:
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2001-09-21 21:06:18 +0000
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2001-09-21 21:06:18 +0000
commit537ba8a951b095468c85c2768a7fa8e313bea2d4 (patch)
treef3ebd10698c0606a2ff6227103bfdd07e5e9f827 /gcc/reload.c
parent673de8ae3b1add51f20fe1b0cfb0f8627cad58a0 (diff)
downloadppe42-gcc-537ba8a951b095468c85c2768a7fa8e313bea2d4.tar.gz
ppe42-gcc-537ba8a951b095468c85c2768a7fa8e313bea2d4.zip
* reload.c (push_secondary_reload): Don't check for "=" in output
constraint after ""->ALL_REGS check. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@45739 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/reload.c')
-rw-r--r--gcc/reload.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/gcc/reload.c b/gcc/reload.c
index 99e4c6ec027..8e6d2b3afbf 100644
--- a/gcc/reload.c
+++ b/gcc/reload.c
@@ -381,13 +381,16 @@ push_secondary_reload (in_p, x, opnum, optional, reload_class, reload_mode,
insn_class
= (insn_letter == 'r' ? GENERAL_REGS
: REG_CLASS_FROM_LETTER ((unsigned char) insn_letter));
- }
- if (insn_class == NO_REGS
- || (in_p
+ if (insn_class == NO_REGS)
+ abort ();
+ if (in_p
&& insn_data[(int) icode].operand[!in_p].constraint[0] != '=')
- /* The scratch register's constraint must start with "=&". */
- || insn_data[(int) icode].operand[2].constraint[0] != '='
+ abort ();
+ }
+
+ /* The scratch register's constraint must start with "=&". */
+ if (insn_data[(int) icode].operand[2].constraint[0] != '='
|| insn_data[(int) icode].operand[2].constraint[1] != '&')
abort ();
OpenPOWER on IntegriCloud