diff options
author | Neil Booth <neil@daikokuya.co.uk> | 2003-06-30 19:36:25 +0000 |
---|---|---|
committer | Neil Booth <neil@gcc.gnu.org> | 2003-06-30 19:36:25 +0000 |
commit | 37fa72e9d359a0c00c3b62e9aabd74276daa6602 (patch) | |
tree | 01d40120cc52c2574f790a44609bf19f0551b019 /gcc/c-decl.c | |
parent | 4497827651d07fa10006fbac4cf63a92cf83c2a2 (diff) | |
download | gcc-37fa72e9d359a0c00c3b62e9aabd74276daa6602.zip gcc-37fa72e9d359a0c00c3b62e9aabd74276daa6602.tar.gz gcc-37fa72e9d359a0c00c3b62e9aabd74276daa6602.tar.bz2 |
c-common.c (enum c_language_kind, flag_objc): Remove.
* c-common.c (enum c_language_kind, flag_objc): Remove.
(fix_string_type, check_case_value, c_common_nodes_and_builtins,
c_add_case_label, finish_label_addr_expr, boolean_increment):
Use c_dialect_ macros.
* c-common.h (enum c_language_kind): Extend.
(c_dialect_cxx, c_dialect_objc): New.
(flag_objc): Remove.
(c_common_init_options): Update prototype.
* c-cppbuiltin.c (define__GNUC__, c_cpp_builtins): Use c_dialect_
macros.
* c-decl.c (finsih_decl, grokfield, finish_struct): Use c_dialect_
macros.
* c-format.c (C_STD_VER, C_STD_NAME): Similarly.
* c-lang.c (c_init_options): Remove.
(c_language): Define.
(LANG_HOOKS_INIT_OPTIONS): Use common hook.
* c-lex.c (lex_charconst): Use c_dialect_cxx().
* c-opts.c (lang_flags): Make function-local.
(c_common_init_options): Use c_dialect_ macros. Handle
C++ diagnostic requirements.
(c_common_handle_option, c_common_post_options): Use flag_cxx.
* c-parse.in (init_reswords): Use c_dialect_objc ().
* c-pch.c (get_ident): Use c_language.
* c-pretty-print.c (pp_c_bool_literal): Use c_dialect_ macros.
* c-typeck.c (comptypes, build_c_cast): Similarly.
* objc/objc-lang.c (c_language): Define.
(LANG_HOOKS_INIT_OPTIONS): Use common hook.
(objc_init_options): Remove.
cp:
* Make-lang.in: Update.
* cp-lang.c (c_language): Define.
(LANG_HOOKS_INIT_OPTIONS): Use common hook.
* cp-tree.h (cxx_init_options): Remove.
* lex.c: Don't include diagnostic.h.
(cxx_init_options): Remove.
From-SVN: r68734
Diffstat (limited to 'gcc/c-decl.c')
-rw-r--r-- | gcc/c-decl.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gcc/c-decl.c b/gcc/c-decl.c index 78b74a4..70d31fe 100644 --- a/gcc/c-decl.c +++ b/gcc/c-decl.c @@ -2863,7 +2863,7 @@ finish_decl (tree decl, tree init, tree asmspec_tree) if (TREE_CODE (decl) == VAR_DECL || TREE_CODE (decl) == FUNCTION_DECL) { /* This is a no-op in c-lang.c or something real in objc-act.c. */ - if (flag_objc) + if (c_dialect_objc ()) objc_check_decl (decl); if (!DECL_CONTEXT (decl)) @@ -2927,7 +2927,7 @@ finish_decl (tree decl, tree init, tree asmspec_tree) if (TREE_CODE (decl) == TYPE_DECL) { /* This is a no-op in c-lang.c or something real in objc-act.c. */ - if (flag_objc) + if (c_dialect_objc ()) objc_check_decl (decl); rest_of_decl_compilation (decl, NULL, DECL_CONTEXT (decl) == 0, 0); } @@ -4864,7 +4864,7 @@ grokfield (tree declarator, tree declspecs, tree width) finish_decl (value, NULL_TREE, NULL_TREE); DECL_INITIAL (value) = width; - if (flag_objc) + if (c_dialect_objc ()) objc_check_decl (value); return value; } @@ -5160,7 +5160,7 @@ finish_struct (tree t, tree fieldlist, tree attributes) { layout_decl (decl, 0); /* This is a no-op in c-lang.c or something real in objc-act.c. */ - if (flag_objc) + if (c_dialect_objc ()) objc_check_decl (decl); rest_of_decl_compilation (decl, NULL, toplevel, 0); if (! toplevel) @@ -5183,7 +5183,7 @@ finish_struct (tree t, tree fieldlist, tree attributes) if (TREE_CODE (decl) != TYPE_DECL) { layout_decl (decl, 0); - if (flag_objc) + if (c_dialect_objc ()) objc_check_decl (decl); rest_of_decl_compilation (decl, NULL, toplevel, 0); if (! toplevel) |