From: Eric Botcazou Date: Wed, 31 Aug 2016 10:09:00 +0000 (+0000) Subject: * config/arm/arm.c (thumb1_size_rtx_costs) : Add missing guard. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c1105fa7e43a9169187012010eeee81893e6a3cc;p=gcc.git * config/arm/arm.c (thumb1_size_rtx_costs) : Add missing guard. From-SVN: r239888 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 54f2f7a33ba..e9dd53779c8 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2016-08-31 Eric Botcazou + + * config/arm/arm.c (thumb1_size_rtx_costs) : Add missing guard. + 2016-08-30 David Malcolm * diagnostic-show-locus.c (colorizer::begin_state): Support more diff --git a/gcc/config/arm/arm.c b/gcc/config/arm/arm.c index 43a832eeb5c..946f308ca84 100644 --- a/gcc/config/arm/arm.c +++ b/gcc/config/arm/arm.c @@ -9127,7 +9127,8 @@ thumb1_size_rtx_costs (rtx x, enum rtx_code code, enum rtx_code outer) if (satisfies_constraint_J (SET_SRC (x)) || satisfies_constraint_K (SET_SRC (x)) /* Too big an immediate for a 2-byte mov, using MOVT. */ - || (UINTVAL (SET_SRC (x)) >= 256 + || (CONST_INT_P (SET_SRC (x)) + && UINTVAL (SET_SRC (x)) >= 256 && TARGET_HAVE_MOVT && satisfies_constraint_j (SET_SRC (x))) /* thumb1_movdi_insn. */