From e19571dbde916e6b64ffe8baa9e94e64ebd15f83 Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Fri, 7 Oct 1994 16:13:58 -0400 Subject: [PATCH] (preserve_temp_slots): If X cannot be a temp slot, preserve all things whose address was taken at the present level. From-SVN: r8238 --- gcc/function.c | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/gcc/function.c b/gcc/function.c index 00801cd4edc..b0d76ecb740 100644 --- a/gcc/function.c +++ b/gcc/function.c @@ -1040,12 +1040,19 @@ preserve_temp_slots (x) p = find_temp_slot_from_address (x); /* If X is not in memory or is at a constant address, it cannot be in - a temporary slot. */ + a temporary slot, but it can contain something whose address was + taken. */ if (p == 0 && (GET_CODE (x) != MEM || CONSTANT_P (XEXP (x, 0)))) - return; + { + for (p = temp_slots; p; p = p->next) + if (p->in_use && p->level == temp_slot_level && p->addr_taken) + p->level--; + + return; + } /* First see if we can find a match. */ - if (p== 0) + if ( p== 0) p = find_temp_slot_from_address (XEXP (x, 0)); if (p != 0) -- 2.30.2