This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

A 32/64 bit fix in explow.c


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);


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]