From 8aa692e017a777c6d4d958c1ffd60e4b0c90c8b6 Mon Sep 17 00:00:00 2001 From: rearnsha Date: Mon, 27 Jan 2003 10:46:47 +0000 Subject: [PATCH] PR optimization/9090 * function.c (purge_addressof_1): After pushing an addressed register onto the stack, simplify the result. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@61881 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 6 ++++++ gcc/function.c | 5 +---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a0240875b7f..cb98935db5e 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2003-01-27 Richard Earnshaw + + PR optimization/9090 + * function.c (purge_addressof_1): After pushing an addressed register + onto the stack, simplify the result. + 2003-01-27 Volker Reichelt * doc/cppopts.texi: Fix typo. diff --git a/gcc/function.c b/gcc/function.c index c57ad6dc659..fe5394ec036 100644 --- a/gcc/function.c +++ b/gcc/function.c @@ -3007,10 +3007,7 @@ purge_addressof_1 (loc, insn, force, store, ht) rtx sub, insns; if (GET_CODE (XEXP (x, 0)) != MEM) - { - put_addressof_into_stack (x, ht); - return true; - } + put_addressof_into_stack (x, ht); /* We must create a copy of the rtx because it was created by overwriting a REG rtx which is always shared. */ -- 2.11.4.GIT