]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
rs6000.c (toc_relative_expr_p): Use add_cint_operand.
authorAlan Modra <amodra@gmail.com>
Thu, 12 Sep 2013 02:47:05 +0000 (12:17 +0930)
committerAlan Modra <amodra@gcc.gnu.org>
Thu, 12 Sep 2013 02:47:05 +0000 (12:17 +0930)
* config/rs6000/rs6000.c (toc_relative_expr_p): Use add_cint_operand.

From-SVN: r202515

gcc/ChangeLog
gcc/config/rs6000/rs6000.c

index e05cb8ef66763727af541cdb45714ab1758929b0..c57d081639aa303e4c3ad2f56ecc908f59d75481 100644 (file)
@@ -1,3 +1,7 @@
+2013-09-12  Alan Modra  <amodra@gmail.com>
+
+       * config/rs6000/rs6000.c (toc_relative_expr_p): Use add_cint_operand.
+
 2013-09-11  DJ Delorie  <dj@redhat.com>
            Nick Clifton  <nickc@redhat.com>
 
index c1acbd825ea5094360cfbc1fbb708b3149e4b075..7ff0af907d97fc650abdfb35ef42c4c43d12b470 100644 (file)
@@ -5926,7 +5926,7 @@ toc_relative_expr_p (const_rtx op, bool strict)
 
   tocrel_base = op;
   tocrel_offset = const0_rtx;
-  if (GET_CODE (op) == PLUS && CONST_INT_P (XEXP (op, 1)))
+  if (GET_CODE (op) == PLUS && add_cint_operand (XEXP (op, 1), GET_MODE (op)))
     {
       tocrel_base = XEXP (op, 0);
       tocrel_offset = XEXP (op, 1);