From 6608bd4de4b52a0519329caa878375641dbe9756 Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Thu, 8 Nov 2001 22:56:52 +0000 Subject: [PATCH] explow.c (convert_memory_address, [...]): Only return inner object if SUBREG_PROMOTED_VAR_P or known to be pointer. * explow.c (convert_memory_address, case SUBREG): Only return inner object if SUBREG_PROMOTED_VAR_P or known to be pointer. From-SVN: r46862 --- gcc/ChangeLog | 5 +++++ gcc/explow.c | 1 + 2 files changed, 6 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d573ed0ad23..06fa1f65f0f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +Thu Nov 8 18:00:55 2001 Richard Kenner + + * explow.c (convert_memory_address, case SUBREG): Only return + inner object if SUBREG_PROMOTED_VAR_P or known to be pointer. + 2001-11-08 Richard Henderson * Makefile.in (GCC_FOR_TARGET): Add build_tooldir/sys-include. diff --git a/gcc/explow.c b/gcc/explow.c index 940a8395191..874713f65e8 100644 --- a/gcc/explow.c +++ b/gcc/explow.c @@ -363,6 +363,7 @@ convert_memory_address (to_mode, x) 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); break; -- 2.30.2