diff options
Diffstat (limited to 'gcc/reload1.c')
-rw-r--r-- | gcc/reload1.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/gcc/reload1.c b/gcc/reload1.c index 2704dadab4d..0f5d688c8a5 100644 --- a/gcc/reload1.c +++ b/gcc/reload1.c @@ -817,8 +817,12 @@ reload (first, global) else if (LEGITIMATE_CONSTANT_P (x)) reg_equiv_constant[i] = x; else - reg_equiv_memory_loc[i] - = force_const_mem (GET_MODE (SET_DEST (set)), x); + { + reg_equiv_memory_loc[i] + = force_const_mem (GET_MODE (SET_DEST (set)), x); + if (!reg_equiv_memory_loc[i]) + continue; + } } else continue; |