2015-04-15 Christophe Lyon <christophe.lyon@linaro.org>
authorclyon <clyon@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 15 Apr 2015 08:11:56 +0000 (08:11 +0000)
committerclyon <clyon@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 15 Apr 2015 08:11:56 +0000 (08:11 +0000)
Backport from trunk r220348.
2015-02-02  Tejas Belagod  <tejas.belagod@arm.com>
    Andrew Pinski  <pinskia@gcc.gnu.org>
    Jakub Jelinek  <jakub@gcc.gnu.org>

PR target/64231
* config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
integer typing for small model. Use IN_RANGE.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/linaro/gcc-4_9-branch@222119 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog.linaro
gcc/config/aarch64/aarch64.c

index 3ac887e..f7d5687 100644 (file)
@@ -1,3 +1,14 @@
+2015-04-15  Christophe Lyon  <christophe.lyon@linaro.org>
+
+       Backport from trunk r220348.
+       2015-02-02  Tejas Belagod  <tejas.belagod@arm.com>
+           Andrew Pinski  <pinskia@gcc.gnu.org>
+           Jakub Jelinek  <jakub@gcc.gnu.org>
+
+       PR target/64231
+       * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
+       integer typing for small model. Use IN_RANGE.
+
 2015-04-14  Michael Collison  <michael.collison@linaro.org>
 
        Backport from trunk r220399, r220413.
index 4dec289..0594198 100644 (file)
@@ -6780,8 +6780,8 @@ aarch64_classify_symbol (rtx x, rtx offset,
          /* Same reasoning as the tiny code model, but the offset cap here is
             4G.  */
          if (SYMBOL_REF_WEAK (x)
-             || INTVAL (offset) < (HOST_WIDE_INT) -4294967263
-             || INTVAL (offset) > (HOST_WIDE_INT) 4294967264)
+             || !IN_RANGE (INTVAL (offset), HOST_WIDE_INT_C (-4294967263),
+                           HOST_WIDE_INT_C (4294967264)))
            return SYMBOL_FORCE_TO_MEM;
          return SYMBOL_SMALL_ABSOLUTE;