From 38c89763f9b8f4011f19b67bd4bb2d02a454cd41 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Thu, 12 Sep 2013 12:17:05 +0930 Subject: [PATCH] rs6000.c (toc_relative_expr_p): Use add_cint_operand. * config/rs6000/rs6000.c (toc_relative_expr_p): Use add_cint_operand. From-SVN: r202515 --- gcc/ChangeLog | 4 ++++ gcc/config/rs6000/rs6000.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e05cb8ef667..c57d081639a 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2013-09-12 Alan Modra + + * config/rs6000/rs6000.c (toc_relative_expr_p): Use add_cint_operand. + 2013-09-11 DJ Delorie Nick Clifton diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c index c1acbd825ea..7ff0af907d9 100644 --- a/gcc/config/rs6000/rs6000.c +++ b/gcc/config/rs6000/rs6000.c @@ -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); -- 2.30.2