OSDN Git Service

* regs.h: Do not include obstack.h, basic-block.h.
authorsteven <steven@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 23 May 2010 15:40:15 +0000 (15:40 +0000)
committersteven <steven@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 23 May 2010 15:40:15 +0000 (15:40 +0000)
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

gcc/ChangeLog
gcc/basic-block.h
gcc/coverage.c
gcc/function.h
gcc/jump.c
gcc/profile.c
gcc/regs.h
gcc/tree-profile.c

index c892795..4092ae1 100644 (file)
@@ -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
index c5b8799..7992f2a 100644 (file)
@@ -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 *);
index 5ef4ddd..065c87c 100644 (file)
@@ -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"
index 9063e52..6e15092 100644 (file)
@@ -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 */
index 6ce989d..6c3263c 100644 (file)
@@ -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"
index ac46046..efbbf79 100644 (file)
@@ -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"
index 01325b0..c9dddb5 100644 (file)
@@ -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)]
 
index 9bc1bc3..2d3ec12 100644 (file)
@@ -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"