summaryrefslogtreecommitdiffstats
path: root/gcc
diff options
context:
space:
mode:
authorrakdver <rakdver@138bc75d-0d04-0410-961f-82ee72b054a4>2003-04-30 10:03:35 +0000
committerrakdver <rakdver@138bc75d-0d04-0410-961f-82ee72b054a4>2003-04-30 10:03:35 +0000
commitc4327e0e7ee34321b7d9fa2b8bb89bcc9c1a65dd (patch)
tree8e055342cff5918d803db63ed5ca604cbb4ba7eb /gcc
parent0837fe15ae2888eb1ade9490ba1474b204d1dfa4 (diff)
downloadppe42-gcc-c4327e0e7ee34321b7d9fa2b8bb89bcc9c1a65dd.tar.gz
ppe42-gcc-c4327e0e7ee34321b7d9fa2b8bb89bcc9c1a65dd.zip
* function.c (purge_addressof_1): Postpone insn in fewer cases.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@66286 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/function.c16
2 files changed, 13 insertions, 7 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index a5604c11c86..c453b2003b1 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,7 @@
+2003-04-30 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
+
+ * function.c (purge_addressof_1): Postpone insn in fewer cases.
+
2003-04-29 Geoffrey Keating <geoffk@apple.com>
* config/rs6000/host-darwin.c (segv_handler): When -dH is used,
diff --git a/gcc/function.c b/gcc/function.c
index c5c0d03c559..6e52d7e1ddb 100644
--- a/gcc/function.c
+++ b/gcc/function.c
@@ -3075,13 +3075,6 @@ purge_addressof_1 (loc, insn, force, store, may_postpone, ht)
{
rtx sub = XEXP (XEXP (x, 0), 0);
- if (may_postpone)
- {
- if (!postponed_insns || XEXP (postponed_insns, 0) != insn)
- postponed_insns = alloc_INSN_LIST (insn, postponed_insns);
- return true;
- }
-
if (GET_CODE (sub) == MEM)
sub = adjust_address_nv (sub, GET_MODE (x), 0);
else if (GET_CODE (sub) == REG
@@ -3091,6 +3084,15 @@ purge_addressof_1 (loc, insn, force, store, may_postpone, ht)
{
int size_x, size_sub;
+ if (may_postpone)
+ {
+ /* Postpone for now, so that we do not emit bitfield arithmetics
+ unless there is some benefit from it. */
+ if (!postponed_insns || XEXP (postponed_insns, 0) != insn)
+ postponed_insns = alloc_INSN_LIST (insn, postponed_insns);
+ return true;
+ }
+
if (!insn)
{
/* When processing REG_NOTES look at the list of
OpenPOWER on IntegriCloud