diff options
author | Neil Booth <neil@daikokuya.co.uk> | 2002-08-07 18:32:13 +0000 |
---|---|---|
committer | Neil Booth <neil@gcc.gnu.org> | 2002-08-07 18:32:13 +0000 |
commit | 0b6f2917cfcbfbaccca804e0f038ac8c4457f772 (patch) | |
tree | f482610e2d7395c411d78c8b0b4b49417cca0344 /gcc/c-common.c | |
parent | e49ec17d553e4c1e5c3a18a6bb15627959c5a313 (diff) | |
download | gcc-0b6f2917cfcbfbaccca804e0f038ac8c4457f772.zip gcc-0b6f2917cfcbfbaccca804e0f038ac8c4457f772.tar.gz gcc-0b6f2917cfcbfbaccca804e0f038ac8c4457f772.tar.bz2 |
Makefile.in (c-opts.o, [...]): Update.
* Makefile.in (c-opts.o, c-common.o, C_AND_OBJC_OBJS): Update.
* c-common.c: Don't include tree-inline.h.
(c_common_init_options, c_common_post_options): Move to c-opts.c.
* c-common.h (c_common_decode_option): New.
* c-decl.c (c_decode_option): Remove.
* c-lang.c (LANG_HOOKS_DECODE_OPTION): Use c_common_decode_option.
* c-opts.c: New file.
* c-tree.h (c_decode_option): Remove.
* doc/passes.texi: Update.
* objc/objc-act.c (objc_decode_option): Remove.
* objc/objc-act.h (objc_decode_option): Remove.
* objc/ojbc-lang.c (LANG_HOOKS_DECODE_OPTION): Use
c_common_decode_option.
cp:
* Make-lang.in (CXX_C_OBJS): Update.
* cp-lang.c (LANG_HOOKS_DECODE_OPTION): Use c_common_decode_option.
* cp-tree.h (cxx_decode_option): Remove.
* decl2.c (compare_options, lang_f_options, unsupported_options,
cxx_decode_option): Remove.
testsuite:
* objc.dg/const-str-2.m: Update.
* gcc.dg/cpp/c++98.c: Change to C extension.
* gcc.dg/cpp/c++98-pedantic.c: Similarly.
* gcc.dg/cpp/cpp.exp: Process .C extensions too.
From-SVN: r56105
Diffstat (limited to 'gcc/c-common.c')
-rw-r--r-- | gcc/c-common.c | 68 |
1 files changed, 0 insertions, 68 deletions
diff --git a/gcc/c-common.c b/gcc/c-common.c index 30c38de..e09eac2 100644 --- a/gcc/c-common.c +++ b/gcc/c-common.c @@ -31,7 +31,6 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA #include "ggc.h" #include "expr.h" #include "c-common.h" -#include "tree-inline.h" #include "diagnostic.h" #include "tm_p.h" #include "obstack.h" @@ -4669,73 +4668,6 @@ boolean_increment (code, arg) return val; } -/* Common initialization before parsing options. */ -void -c_common_init_options (lang) - enum c_language_kind lang; -{ - c_language = lang; - parse_in = cpp_create_reader (lang == clk_c || lang == clk_objective_c - ? CLK_GNUC89 : CLK_GNUCXX); - if (lang == clk_objective_c) - cpp_get_options (parse_in)->objc = 1; - - flag_const_strings = (lang == clk_cplusplus); - warn_pointer_arith = (lang == clk_cplusplus); - if (lang == clk_c) - warn_sign_compare = -1; - - /* Mark as "unspecified" (see c_common_post_options). */ - flag_bounds_check = -1; -} - -/* Post-switch processing. */ -bool -c_common_post_options () -{ - cpp_post_options (parse_in); - - flag_inline_trees = 1; - - /* Use tree inlining if possible. Function instrumentation is only - done in the RTL level, so we disable tree inlining. */ - if (! flag_instrument_function_entry_exit) - { - if (!flag_no_inline) - flag_no_inline = 1; - if (flag_inline_functions) - { - flag_inline_trees = 2; - flag_inline_functions = 0; - } - } - - /* If still "unspecified", make it match -fbounded-pointers. */ - if (flag_bounds_check == -1) - flag_bounds_check = flag_bounded_pointers; - - /* Special format checking options don't work without -Wformat; warn if - they are used. */ - if (warn_format_y2k && !warn_format) - warning ("-Wformat-y2k ignored without -Wformat"); - if (warn_format_extra_args && !warn_format) - warning ("-Wformat-extra-args ignored without -Wformat"); - if (warn_format_zero_length && !warn_format) - warning ("-Wformat-zero-length ignored without -Wformat"); - if (warn_format_nonliteral && !warn_format) - warning ("-Wformat-nonliteral ignored without -Wformat"); - if (warn_format_security && !warn_format) - warning ("-Wformat-security ignored without -Wformat"); - if (warn_missing_format_attribute && !warn_format) - warning ("-Wmissing-format-attribute ignored without -Wformat"); - - /* If an error has occurred in cpplib, note it so we fail - immediately. */ - errorcount += cpp_errors (parse_in); - - return flag_preprocess_only; -} - /* Hook that registers front end and target-specific built-ins. */ static void cb_register_builtins (pfile) |