re PR target/59203 (config/cris/cris.c:2491: possible typo ?)
authorHans-Peter Nilsson <hp@axis.com>
Mon, 23 Dec 2013 23:12:09 +0000 (23:12 +0000)
committerHans-Peter Nilsson <hp@gcc.gnu.org>
Mon, 23 Dec 2013 23:12:09 +0000 (23:12 +0000)
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
gcc/config/cris/cris.c

index 00b2c2192db7b2444cd9f83be5db9750191891bd..cc8c0938eec59bc46b003da809c397cff8f146ae 100644 (file)
@@ -1,5 +1,9 @@
 2013-12-23  Hans-Peter Nilsson  <hp@axis.com>
 
+       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.
index 235b6c652cf32985e9817abf18cff281383aa1e7..5e24c3fef4e6f0cdadee0fe05be8b69446bf2792 100644 (file)
@@ -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;