diff options
author | Steven Bosscher <steven@gcc.gnu.org> | 2010-05-23 15:40:15 +0000 |
---|---|---|
committer | Steven Bosscher <steven@gcc.gnu.org> | 2010-05-23 15:40:15 +0000 |
commit | 2d1a4cc1dc7d0786f9e60d7333594d0aa3d4fb98 (patch) | |
tree | be8721f4ded7d9fccb6ff073eec425f223a971e2 /gcc | |
parent | 5767217f7a8fccf90d601b652dd80793763ee6d2 (diff) | |
download | gcc-2d1a4cc1dc7d0786f9e60d7333594d0aa3d4fb98.zip gcc-2d1a4cc1dc7d0786f9e60d7333594d0aa3d4fb98.tar.gz gcc-2d1a4cc1dc7d0786f9e60d7333594d0aa3d4fb98.tar.bz2 |
regs.h: Do not include obstack.h, basic-block.h.
* 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.
From-SVN: r159761
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 13 | ||||
-rw-r--r-- | gcc/basic-block.h | 2 | ||||
-rw-r--r-- | gcc/coverage.c | 1 | ||||
-rw-r--r-- | gcc/function.h | 5 | ||||
-rw-r--r-- | gcc/jump.c | 1 | ||||
-rw-r--r-- | gcc/profile.c | 1 | ||||
-rw-r--r-- | gcc/regs.h | 3 | ||||
-rw-r--r-- | gcc/tree-profile.c | 1 |
8 files changed, 23 insertions, 4 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index c892795..4092ae1 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 c5b8799..7992f2a 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 5ef4ddd..065c87c 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 9063e52..6e15092 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 */ @@ -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 ac46046..efbbf79 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" @@ -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 9bc1bc3..2d3ec12 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" |