]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
arm.c (add_constant): When taking the address of an item in the pool, get the mode...
authorRichard Earnshaw <rearnsha@arm.com>
Mon, 9 Nov 1998 22:08:52 +0000 (22:08 +0000)
committerJeff Law <law@gcc.gnu.org>
Mon, 9 Nov 1998 22:08:52 +0000 (15:08 -0700)
        * arm.c (add_constant): When taking the address of an item in the
        pool, get the mode of the item addressed.

From-SVN: r23590

gcc/ChangeLog
gcc/config/arm/arm.c

index 070436b6750bd1961676ad09e2ef743fbe9f6a0c..4454db7564c842559bd23e8696fc07d3e3ab3a36 100644 (file)
@@ -1,5 +1,8 @@
 Mon Nov  9 23:05:51 1998  Richard Earnshaw (rearnsha@arm.com)
 
+       * arm.c (add_constant): When taking the address of an item in the
+       pool, get the mode of the item addressed.
+
        * arm.c (final_prescan_insn, case INSN): If an insn doesn't 
        contain a SET or a PARALLEL, don't consider it for conditional
        execution.
index b201a0b5f8c37c5b6d9b83d2a1e27599662e5609..767f1a78168439ef6cb6f7d092d192a56e1fcf74 100644 (file)
@@ -3470,6 +3470,7 @@ add_constant (x, mode, address_only)
   else if (GET_CODE (x) == SYMBOL_REF && CONSTANT_POOL_ADDRESS_P(x))
     {
       *address_only = 1;
+      mode = get_pool_mode (x);
       x = get_pool_constant (x);
     }
 #ifndef AOF_ASSEMBLER