summaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorsteven <steven@138bc75d-0d04-0410-961f-82ee72b054a4>2010-05-23 15:40:15 +0000
committersteven <steven@138bc75d-0d04-0410-961f-82ee72b054a4>2010-05-23 15:40:15 +0000
commita79e752360d02b4d5cc3989801535727e4e82644 (patch)
treebe8721f4ded7d9fccb6ff073eec425f223a971e2 /gcc
parentc335b5feeb574fa90f128db8259591419ce34d4a (diff)
downloadgcc-a79e752360d02b4d5cc3989801535727e4e82644.tar.gz
* regs.h: Do not include obstack.h, basic-block.h.
Include machmode.h. * jump.c: Include basic-block.h. * profile.c: Likewise. * tree-profile.c: Likewise. * coverage.c: Likewise. * basic-block.h (optimize_function_for_size_p): Move to function.h. (optimize_function_for_speed_p): Likewise. * function.h (optimize_function_for_size_p, optimize_function_for_speed_p): Moved here from basic-block.h. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@159761 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog13
-rw-r--r--gcc/basic-block.h2
-rw-r--r--gcc/coverage.c1
-rw-r--r--gcc/function.h5
-rw-r--r--gcc/jump.c1
-rw-r--r--gcc/profile.c1
-rw-r--r--gcc/regs.h3
-rw-r--r--gcc/tree-profile.c1
8 files changed, 23 insertions, 4 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index c8927954e4c..4092ae1fb4d 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,16 @@
+2010-05-23 Steven Bosscher <steven@gcc.gnu.org>
+
+ * regs.h: Do not include obstack.h, basic-block.h.
+ Include machmode.h.
+ * jump.c: Include basic-block.h.
+ * profile.c: Likewise.
+ * tree-profile.c: Likewise.
+ * coverage.c: Likewise.
+ * basic-block.h (optimize_function_for_size_p): Move to function.h.
+ (optimize_function_for_speed_p): Likewise.
+ * function.h (optimize_function_for_size_p,
+ optimize_function_for_speed_p): Moved here from basic-block.h.
+
2010-05-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
* lto-wrapper.c (run_gcc): Unset MAKEFLAGS and MFLAGS
diff --git a/gcc/basic-block.h b/gcc/basic-block.h
index c5b8799d8d5..7992f2a162f 100644
--- a/gcc/basic-block.h
+++ b/gcc/basic-block.h
@@ -749,8 +749,6 @@ extern bool optimize_bb_for_size_p (const_basic_block);
extern bool optimize_bb_for_speed_p (const_basic_block);
extern bool optimize_edge_for_size_p (edge);
extern bool optimize_edge_for_speed_p (edge);
-extern bool optimize_function_for_size_p (struct function *);
-extern bool optimize_function_for_speed_p (struct function *);
extern bool optimize_loop_for_size_p (struct loop *);
extern bool optimize_loop_for_speed_p (struct loop *);
extern bool optimize_loop_nest_for_size_p (struct loop *);
diff --git a/gcc/coverage.c b/gcc/coverage.c
index 5ef4dddd812..065c87cd364 100644
--- a/gcc/coverage.c
+++ b/gcc/coverage.c
@@ -37,6 +37,7 @@ along with GCC; see the file COPYING3. If not see
#include "regs.h"
#include "expr.h"
#include "function.h"
+#include "basic-block.h"
#include "toplev.h"
#include "tm_p.h"
#include "ggc.h"
diff --git a/gcc/function.h b/gcc/function.h
index 9063e52558c..6e150921f78 100644
--- a/gcc/function.h
+++ b/gcc/function.h
@@ -703,4 +703,9 @@ extern bool reference_callee_copied (CUMULATIVE_ARGS *, enum machine_mode,
extern void used_types_insert (tree);
extern int get_next_funcdef_no (void);
+
+/* In predict.c */
+extern bool optimize_function_for_size_p (struct function *);
+extern bool optimize_function_for_speed_p (struct function *);
+
#endif /* GCC_FUNCTION_H */
diff --git a/gcc/jump.c b/gcc/jump.c
index 6ce989d2037..6c3263c01a0 100644
--- a/gcc/jump.c
+++ b/gcc/jump.c
@@ -47,6 +47,7 @@ along with GCC; see the file COPYING3. If not see
#include "insn-attr.h"
#include "recog.h"
#include "function.h"
+#include "basic-block.h"
#include "expr.h"
#include "except.h"
#include "diagnostic.h"
diff --git a/gcc/profile.c b/gcc/profile.c
index ac460464697..efbbf7936fe 100644
--- a/gcc/profile.c
+++ b/gcc/profile.c
@@ -59,6 +59,7 @@ along with GCC; see the file COPYING3. If not see
#include "regs.h"
#include "expr.h"
#include "function.h"
+#include "basic-block.h"
#include "toplev.h"
#include "coverage.h"
#include "value-prof.h"
diff --git a/gcc/regs.h b/gcc/regs.h
index 01325b09e91..c9dddb5abd1 100644
--- a/gcc/regs.h
+++ b/gcc/regs.h
@@ -22,9 +22,8 @@ along with GCC; see the file COPYING3. If not see
#ifndef GCC_REGS_H
#define GCC_REGS_H
-#include "obstack.h"
+#include "machmode.h"
#include "hard-reg-set.h"
-#include "basic-block.h"
#define REG_BYTES(R) mode_size[(int) GET_MODE (R)]
diff --git a/gcc/tree-profile.c b/gcc/tree-profile.c
index 9bc1bc3eae0..2d3ec122858 100644
--- a/gcc/tree-profile.c
+++ b/gcc/tree-profile.c
@@ -34,6 +34,7 @@ along with GCC; see the file COPYING3. If not see
#include "regs.h"
#include "expr.h"
#include "function.h"
+#include "basic-block.h"
#include "toplev.h"
#include "coverage.h"
#include "tree.h"