]> gcc.gnu.org Git - gcc.git/commitdiff
ia64.c (ia64_expand_load_address): Ensure correct mode for symbol address.
authorSteve Ellcey <sje@cup.hp.com>
Thu, 26 Sep 2002 21:50:42 +0000 (21:50 +0000)
committerSteve Ellcey <sje@gcc.gnu.org>
Thu, 26 Sep 2002 21:50:42 +0000 (21:50 +0000)
* config/ia64/ia64.c (ia64_expand_load_address): Ensure correct mode
for symbol address.

From-SVN: r57554

gcc/ChangeLog
gcc/config/ia64/ia64.c

index be3908b7143af49530416212236793b7302a0307..6e3b0cd68a75b181a9f9fd0181f8e5335fafc52f 100644 (file)
@@ -1,3 +1,8 @@
+2002-09-26  Steve Ellcey  <sje@cup.hp.com>
+
+       * config/ia64/ia64.c (ia64_expand_load_address): Ensure correct mode
+       for symbol address.
+
 2002-09-24  Eric Christopher  <echristo@redhat.com>
 
         * config/mips/elf.h: Add HANDLE_SYSV_PRAGMA.
index ad2d9b7645f77d5caebfedb5578584faeb207975..93b02dd68c15a12ff02c204f213d89828f5e0f9a 100644 (file)
@@ -1041,6 +1041,10 @@ ia64_expand_load_address (dest, src, scratch)
        scratch = no_new_pseudos ? temp : gen_reg_rtx (DImode);
 
       insn = emit_insn (gen_load_symptr (temp, src, scratch));
+#ifdef POINTERS_EXTEND_UNSIGNED
+      if (GET_MODE (temp) != GET_MODE (src))
+       src = convert_memory_address (GET_MODE (temp), src);
+#endif
       REG_NOTES (insn) = gen_rtx_EXPR_LIST (REG_EQUAL, src, REG_NOTES (insn));
     }
 
This page took 0.086413 seconds and 5 git commands to generate.