diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 00b2c2192db..cc8c0938eec 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,9 @@ 2013-12-23 Hans-Peter Nilsson + PR target/59203 + * config/cris/cris.c (cris_pic_symbol_type_of): Fix typo, + checking t1 twice instead of t1 and t2 respectively. + PR middle-end/59584 * config/cris/predicates.md (cris_nonsp_register_operand): New define_predicate. diff --git a/gcc/config/cris/cris.c b/gcc/config/cris/cris.c index 235b6c652cf..5e24c3fef4e 100644 --- a/gcc/config/cris/cris.c +++ b/gcc/config/cris/cris.c @@ -2493,7 +2493,7 @@ cris_pic_symbol_type_of (const_rtx x) gcc_assert (t1 == cris_no_symbol || t2 == cris_no_symbol); - if (t1 == cris_got_symbol || t1 == cris_got_symbol) + if (t1 == cris_got_symbol || t2 == cris_got_symbol) return cris_got_symbol_needing_fixup; return t1 != cris_no_symbol ? t1 : t2;