mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-03-19 01:50:34 +08:00
ia64.c (ia64_expand_load_address): Ensure correct mode for symbol address.
* config/ia64/ia64.c (ia64_expand_load_address): Ensure correct mode for symbol address. From-SVN: r57554
This commit is contained in:
parent
2eb2bbdc29
commit
ee8a73d6e7
@ -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.
|
||||
|
@ -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));
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user