From 1995f267b73ed2fc5cfa6771ff3848facf9c2b2a Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Sun, 9 Feb 1997 14:05:39 -0500 Subject: [PATCH] (assign_stack_temp): Clear MEM flags from reuse. From-SVN: r13623 --- gcc/function.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gcc/function.c b/gcc/function.c index 7e9da32be55..468558bc216 100644 --- a/gcc/function.c +++ b/gcc/function.c @@ -913,6 +913,11 @@ assign_stack_temp (mode, size, keep) p->level = temp_slot_level; p->keep = keep; } + + /* We may be reusing an old slot, so clear any MEM flags that may have been + set from before. */ + RTX_UNCHANGING_P (p->slot) = 0; + MEM_IN_STRUCT_P (p->slot) = 0; return p->slot; }