]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* 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 c8927954e4c9fb9758d7f09c4bfaf6c6de15cc40..4092ae1fb4d4c4853fe0df6d5659096a4bd9f317 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 c5b8799d8d570c3f8abf235cc7f7f88f3427709e..7992f2a162f1e1448e4c5fa08705daff1b9106c7 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 5ef4dddd81283053cac41994234bfd3fd20057f1..065c87cd3646f87048f687eb38dea8874d40c291 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 9063e52558ce37ead6331287ef10c16a4f40d98f..6e150921f788591adb0fda486c771c5a3314baba 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 6ce989d2037f675caab62e781167e91a272b63e1..6c3263c01a0499f2d4a3c7a3464bed5891633373 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 ac460464697cef6abbb60cb8bce2fac952a26c97..efbbf7936feac261eb1f68b7a169c02d59bc7d3a 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 01325b09e91bfae97f3edc9c88f78d1eafe74892..c9dddb5abd15ee72ca02a66a9764b82cd5c7f88d 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 9bc1bc3eae01d1f9542176dab15b122fc771a3f0..2d3ec122858428da327ea18fc847e2bf17e8a90c 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"