From c09c8f70540450d35c1d5e5a822339f0145ddbe8 Mon Sep 17 00:00:00 2001 From: Hans-Peter Nilsson Date: Mon, 23 Dec 2013 23:12:09 +0000 Subject: [PATCH] re PR target/59203 (config/cris/cris.c:2491: possible typo ?) PR target/59203 * config/cris/cris.c (cris_pic_symbol_type_of): Fix typo, checking t1 twice instead of t1 and t2 respectively. From-SVN: r206188 --- gcc/ChangeLog | 4 ++++ gcc/config/cris/cris.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) 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;