This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
A 32/64 bit fix in explow.c
- To: gcc-patches at gcc dot gnu dot org
- Subject: A 32/64 bit fix in explow.c
- From: kenner at vlsi1 dot ultra dot nyu dot edu (Richard Kenner)
- Date: Thu, 8 Nov 01 18:17:29 EST
Thu Nov 8 18:00:55 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
* explow.c (convert_memory_address, case SUBREG): Only return
inner object if SUBREG_PROMOTED_VAR_P or known to be pointer.
*** explow.c 2001/10/30 12:41:42 1.81
--- explow.c 2001/11/08 14:48:43
*************** convert_memory_address (to_mode, x)
*** 364,367 ****
--- 364,368 ----
case SUBREG:
if (POINTERS_EXTEND_UNSIGNED >= 0
+ && (SUBREG_PROMOTED_VAR_P (x) || REG_POINTER (SUBREG_REG (x)))
&& GET_MODE (SUBREG_REG (x)) == to_mode)
return SUBREG_REG (x);