summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/Makefile.in2
-rw-r--r--gcc/tree-sra.c2
3 files changed, 8 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index a87da45d891..59f35c1d5de 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2004-06-29 Andrew Pinski <apinski@apple.com>
+
+ * tree-sra.c: Include expr.h for definition of MOVE_RATIO.
+ * Makefile.in (tree-sra.c): Update dependencies.
+
2004-06-29 Richard Henderson <rth@redhat.com>
* tree-sra.c: Rewrite from scratch. Handle nested aggregates.
diff --git a/gcc/Makefile.in b/gcc/Makefile.in
index 6ee17240b46..8a412fc0a78 100644
--- a/gcc/Makefile.in
+++ b/gcc/Makefile.in
@@ -1890,7 +1890,7 @@ tree-ssa-ccp.o : tree-ssa-ccp.c $(CONFIG_H) system.h errors.h $(TREE_H) \
tree-sra.o : tree-sra.c $(CONFIG_H) system.h errors.h $(TREE_H) $(RTL_H) \
$(TM_P_H) $(TREE_FLOW_H) diagnostic.h tree-inline.h \
$(TIMEVAR_H) $(TM_H) coretypes.h $(TREE_DUMP_H) $(TREE_GIMPLE_H) \
- langhooks.h tree-pass.h $(FLAGS_H)
+ langhooks.h tree-pass.h $(FLAGS_H) $(EXPR_H)
tree-complex.o : tree-complex.c $(CONFIG_H) system.h $(TREE_H) \
$(TM_H) $(TREE_FLOW_H) $(TREE_GIMPLE_H) tree-iterator.h tree-pass.h \
$(FLAGS_H)
diff --git a/gcc/tree-sra.c b/gcc/tree-sra.c
index f0d6da92372..022da7d90af 100644
--- a/gcc/tree-sra.c
+++ b/gcc/tree-sra.c
@@ -46,6 +46,8 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
#include "bitmap.h"
#include "obstack.h"
#include "target.h"
+/* expr.h is needed for MOVE_RATIO. */
+#include "expr.h"
/* This object of this pass is to replace a non-addressable aggregate with a