diff options
Diffstat (limited to 'gcc/regclass.c')
-rw-r--r-- | gcc/regclass.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gcc/regclass.c b/gcc/regclass.c index b442cc266be..489f8240407 100644 --- a/gcc/regclass.c +++ b/gcc/regclass.c @@ -2032,8 +2032,12 @@ reg_scan_mark_refs (x, insn, note_flag, min_regno) code = GET_CODE (x); switch (code) { - case CONST_INT: case CONST: + if (GET_CODE (XEXP (x, 0)) == CONSTANT_P_RTX) + reg_scan_mark_refs (XEXP (XEXP (x, 0), 0), insn, note_flag, min_regno); + return; + + case CONST_INT: case CONST_DOUBLE: case CC0: case PC: |