aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans-Peter Nilsson <hp@axis.com>2013-12-23 23:12:09 +0000
committerHans-Peter Nilsson <hp@gcc.gnu.org>2013-12-23 23:12:09 +0000
commitc09c8f70540450d35c1d5e5a822339f0145ddbe8 (patch)
tree4a5753b7bf00d72c908378399cfaffef610caf81
parenta13a866e54572861d8e506764298507d715ba495 (diff)
downloadgcc-c09c8f70540450d35c1d5e5a822339f0145ddbe8.zip
gcc-c09c8f70540450d35c1d5e5a822339f0145ddbe8.tar.gz
gcc-c09c8f70540450d35c1d5e5a822339f0145ddbe8.tar.bz2
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
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/config/cris/cris.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 00b2c21..cc8c093 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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.
diff --git a/gcc/config/cris/cris.c b/gcc/config/cris/cris.c
index 235b6c6..5e24c3f 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;