From bbbbbbe7c633632115ac072e2f7fe30562464f6d Mon Sep 17 00:00:00 2001 From: Eric Christopher Date: Wed, 12 Nov 2003 07:24:25 +0000 Subject: [PATCH] reload1.c (reload): Verify that addresses for reg_equiv_* are valid for the architecture. 2003-11-11 Eric Christopher * reload1.c (reload): Verify that addresses for reg_equiv_* are valid for the architecture. From-SVN: r73487 --- gcc/ChangeLog | 5 +++++ gcc/reload1.c | 6 ++++++ 2 files changed, 11 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index f04aff9802a1..a749add7ee86 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2003-11-11 Eric Christopher + + * reload1.c (reload): Verify that addresses for + reg_equiv_* are valid for the architecture. + 2003-11-11 Eric Christopher * function.c (purge_addressof_1): Add libcall check. diff --git a/gcc/reload1.c b/gcc/reload1.c index 717489f3216c..7bfc142ba954 100644 --- a/gcc/reload1.c +++ b/gcc/reload1.c @@ -774,6 +774,12 @@ reload (rtx first, int global) = force_const_mem (GET_MODE (SET_DEST (set)), x); if (!reg_equiv_memory_loc[i]) continue; + /* As above. Later passes of reload assume that + all addresses found in the reg_equiv_* arrays + were originally legitimate. */ + if (!memory_operand (reg_equiv_memory_loc[i], VOIDmode)) + reg_equiv_memory_loc[i] = NULL_RTX; + } } else -- 2.47.3