From 2207e2952c49585a923dadf2d805c79b9252d143 Mon Sep 17 00:00:00 2001 From: Richard Stallman Date: Sun, 10 May 1992 16:31:17 +0000 Subject: [PATCH] *** empty log message *** From-SVN: r954 --- gcc/stmt.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/gcc/stmt.c b/gcc/stmt.c index a1a2267c5e3..e55b2bd7046 100644 --- a/gcc/stmt.c +++ b/gcc/stmt.c @@ -2799,6 +2799,13 @@ expand_decl (decl) /* Reference the variable indirect through that rtx. */ DECL_RTL (decl) = gen_rtx (MEM, DECL_MODE (decl), address); + /* If this is a memory ref that contains aggregate components, + mark it as such for cse and loop optimize. */ + MEM_IN_STRUCT_P (DECL_RTL (decl)) + = (TREE_CODE (TREE_TYPE (decl)) == ARRAY_TYPE + || TREE_CODE (TREE_TYPE (decl)) == RECORD_TYPE + || TREE_CODE (TREE_TYPE (decl)) == UNION_TYPE); + /* Indicate the alignment we actually gave this variable. */ #ifdef STACK_BOUNDARY DECL_ALIGN (decl) = STACK_BOUNDARY; -- 2.30.2