rtl.h (decl_default_tls_model): Move prototype from here...

gcc/ChangeLog:
	* rtl.h (decl_default_tls_model): Move prototype from here...
	* output.h: ...to here.
	* c-decl.c: Do not include rtl.h.
	* c-pragma.c: Likewise.
	* c-parser.c: Likewise.
	* c-gimplify.c: Likewise.  And also not hard-reg-set.
	* c-common.c: Do not include rtl.h.  Include tm_p.h and add a
	FIXME note for it.  Add a FIXME note for expr.h.
	* config/i386/i386-protos.h (ix86_enum_va_list, ix86_fn_abi_va_list,
	ix86_canonical_va_list_type): Make visible even if RTX_CODE is not
	defined.

cp/ChangeLog:
	* decl.c: Do not include rtl.h
	* semantics.c: Likewise.

ada/ChangeLog:
	* gcc-interface/utils.c: Do not include rtl.h.

fortran/ChangeLog:
	* trans-common.c: Do not include rtl.h, include output.h instead.
	* trans-decl.c: Likewise.

From-SVN: r159856
This commit is contained in:
Steven Bosscher 2010-05-26 08:36:49 +00:00
parent 0d65bdbb70
commit d347d97ea2
17 changed files with 49 additions and 22 deletions

View File

@ -1,3 +1,17 @@
2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
* rtl.h (decl_default_tls_model): Move prototype from here...
* output.h: ...to here.
* c-decl.c: Do not include rtl.h.
* c-pragma.c: Likewise.
* c-parser.c: Likewise.
* c-gimplify.c: Likewise. And also not hard-reg-set.
* c-common.c: Do not include rtl.h. Include tm_p.h and add a
FIXME note for it. Add a FIXME note for expr.h.
* config/i386/i386-protos.h (ix86_enum_va_list, ix86_fn_abi_va_list,
ix86_canonical_va_list_type): Make visible even if RTX_CODE is not
defined.
2010-05-26 Jakub Jelinek <jakub@redhat.com>
PR target/44199

View File

@ -1,3 +1,7 @@
2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
* gcc-interface/utils.c: Do not include rtl.h.
2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
* gcc-interface/utils.c: Do not include function.h, pointer-set.h,

View File

@ -40,7 +40,6 @@
#include "tree-dump.h"
#include "tree-inline.h"
#include "tree-iterator.h"
#include "rtl.h" /* For decl_default_tls_model. */
#include "ada.h"
#include "types.h"

View File

@ -28,9 +28,7 @@ along with GCC; see the file COPYING3. If not see
#include "flags.h"
#include "output.h"
#include "c-pragma.h"
#include "rtl.h"
#include "ggc.h"
#include "expr.h" /* For vector_mode_valid_p */
#include "c-common.h"
#include "tm_p.h"
#include "obstack.h"
@ -49,6 +47,14 @@ along with GCC; see the file COPYING3. If not see
#include "target-def.h"
#include "libfuncs.h"
/* FIXME: Still need to include rtl.h here (via expr.h) in a front-end file.
Pretend this is a back-end file. */
#define IN_GCC_BACKEND
#include "expr.h" /* For vector_mode_valid_p */
/* FIXME: Needed for TARGET_ENUM_VA_LIST, which should be a target hook. */
#include "tm_p.h"
cpp_reader *parse_in; /* Declared in c-pragma.h. */
/* The following symbols are subsumed in the c_global_trees array, and

View File

@ -34,7 +34,6 @@ along with GCC; see the file COPYING3. If not see
#include "intl.h"
#include "tree.h"
#include "tree-inline.h"
#include "rtl.h"
#include "flags.h"
#include "function.h"
#include "output.h"

View File

@ -32,7 +32,6 @@ along with GCC; see the file COPYING3. If not see
#include "c-tree.h"
#include "c-common.h"
#include "gimple.h"
#include "hard-reg-set.h"
#include "basic-block.h"
#include "tree-flow.h"
#include "tree-inline.h"
@ -40,7 +39,6 @@ along with GCC; see the file COPYING3. If not see
#include "langhooks.h"
#include "langhooks-def.h"
#include "flags.h"
#include "rtl.h"
#include "toplev.h"
#include "tree-dump.h"
#include "c-pretty-print.h"

View File

@ -42,7 +42,6 @@ along with GCC; see the file COPYING3. If not see
#include "coretypes.h"
#include "tm.h" /* For rtl.h: needs enum reg_class. */
#include "tree.h"
#include "rtl.h" /* For decl_default_tls_model. */
#include "langhooks.h"
#include "input.h"
#include "cpplib.h"

View File

@ -22,7 +22,6 @@ along with GCC; see the file COPYING3. If not see
#include "system.h"
#include "coretypes.h"
#include "tm.h"
#include "rtl.h"
#include "tree.h"
#include "function.h" /* For cfun. FIXME: Does the parser know
when it is inside a function, so that

View File

@ -144,9 +144,6 @@ extern void ix86_free_from_memory (enum machine_mode);
extern enum calling_abi ix86_cfun_abi (void);
extern enum calling_abi ix86_function_type_abi (const_tree);
extern void ix86_call_abi_override (const_tree);
extern tree ix86_fn_abi_va_list (tree);
extern tree ix86_canonical_va_list_type (tree);
extern int ix86_enum_va_list (int, const char **, tree *);
extern int ix86_reg_parm_stack_space (const_tree);
extern void ix86_split_fp_branch (enum rtx_code code, rtx, rtx,
@ -190,11 +187,15 @@ extern void init_cumulative_args (CUMULATIVE_ARGS *, tree, rtx, tree);
extern rtx function_arg (CUMULATIVE_ARGS *, enum machine_mode, tree, int);
extern void function_arg_advance (CUMULATIVE_ARGS *, enum machine_mode,
tree, int);
#endif
#endif /* TREE_CODE */
#endif
#endif /* RTX_CODE */
#ifdef TREE_CODE
extern int ix86_enum_va_list (int, const char **, tree *);
extern tree ix86_fn_abi_va_list (tree);
extern tree ix86_canonical_va_list_type (tree);
extern int ix86_return_pops_args (tree, tree, int);
extern int ix86_data_alignment (tree, int);

View File

@ -1,3 +1,8 @@
2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
* decl.c: Do not include rtl.h
* semantics.c: Likewise.
2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
* cp-tree.h: Do not include splay-tree.h.

View File

@ -56,8 +56,6 @@ along with GCC; see the file COPYING3. If not see
#include "splay-tree.h"
#include "plugin.h"
#include "rtl.h" /* For decl_default_tls_model. */
static tree grokparms (tree parmlist, tree *);
static const char *redeclaration_error_message (tree, tree);

View File

@ -46,8 +46,6 @@ along with GCC; see the file COPYING3. If not see
#include "gimple.h"
#include "bitmap.h"
#include "rtl.h" /* For decl_default_tls_model. */
/* There routines provide a modular interface to perform many parsing
operations. They may therefore be used during actual parsing, or
during template instantiation, which may be regarded as a

View File

@ -1,3 +1,8 @@
2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
* trans-common.c: Do not include rtl.h, include output.h instead.
* trans-decl.c: Likewise.
2010-05-26 Paul Thomas <pault@gcc.gnu.org>
PR fortran/40011

View File

@ -96,10 +96,10 @@ along with GCC; see the file COPYING3. If not see
#include "config.h"
#include "system.h"
#include "coretypes.h"
#include "tm.h"
#include "tree.h"
#include "toplev.h" /* For exact_log2. */
#include "tm.h" /* For rtl.h. */
#include "rtl.h" /* For decl_default_tls_model. */
#include "output.h" /* For decl_default_tls_model. */
#include "gfortran.h"
#include "trans.h"
#include "trans-types.h"

View File

@ -24,13 +24,13 @@ along with GCC; see the file COPYING3. If not see
#include "config.h"
#include "system.h"
#include "coretypes.h"
#include "tm.h"
#include "tree.h"
#include "tree-dump.h"
#include "gimple.h" /* For create_tmp_var_raw. */
#include "ggc.h"
#include "toplev.h" /* For announce_function/internal_error. */
#include "tm.h" /* For rtl.h. */
#include "rtl.h" /* For decl_default_tls_model. */
#include "output.h" /* For decl_default_tls_model. */
#include "target.h"
#include "function.h"
#include "flags.h"

View File

@ -164,6 +164,9 @@ extern void weak_finish (void);
/* Emit any pending emutls declarations and initializations. */
extern void emutls_finish (void);
/* Return the default TLS model for a given variable. */
extern enum tls_model decl_default_tls_model (const_tree);
/* Decode an `asm' spec for a declaration as a register name.
Return the register number, or -1 if nothing specified,
or -2 if the ASMSPEC is not `cc' or `memory' and is not recognized,

View File

@ -2373,7 +2373,6 @@ extern rtx emit_library_call_value (rtx, rtx, enum libcall_type,
/* In varasm.c */
extern void init_varasm_once (void);
extern enum tls_model decl_default_tls_model (const_tree);
extern rtx make_debug_expr_from_rtl (const_rtx);