diff options
| author | neil <neil@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-08-07 18:32:13 +0000 |
|---|---|---|
| committer | neil <neil@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-08-07 18:32:13 +0000 |
| commit | 428a5a4e2995981f2292d2458a8466d67262c24a (patch) | |
| tree | f482610e2d7395c411d78c8b0b4b49417cca0344 /gcc/objc | |
| parent | 3cdab7327ceb186adb87d5e31ae5a85b003f08ce (diff) | |
| download | ppe42-gcc-428a5a4e2995981f2292d2458a8466d67262c24a.tar.gz ppe42-gcc-428a5a4e2995981f2292d2458a8466d67262c24a.zip | |
* 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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56105 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/objc')
| -rw-r--r-- | gcc/objc/objc-act.c | 41 | ||||
| -rw-r--r-- | gcc/objc/objc-act.h | 1 | ||||
| -rw-r--r-- | gcc/objc/objc-lang.c | 2 |
3 files changed, 1 insertions, 43 deletions
diff --git a/gcc/objc/objc-act.c b/gcc/objc/objc-act.c index 8216d97e201..7ebb9f2a202 100644 --- a/gcc/objc/objc-act.c +++ b/gcc/objc/objc-act.c @@ -495,47 +495,6 @@ finish_file () if (gen_declaration_file) fclose (gen_declaration_file); } - -int -objc_decode_option (argc, argv) - int argc; - char **argv; -{ - const char *p = argv[0]; - - if (!strcmp (p, "-gen-decls")) - flag_gen_declaration = 1; - else if (!strcmp (p, "-Wselector")) - warn_selector = 1; - else if (!strcmp (p, "-Wno-selector")) - warn_selector = 0; - else if (!strcmp (p, "-Wprotocol")) - warn_protocol = 1; - else if (!strcmp (p, "-Wno-protocol")) - warn_protocol = 0; - else if (!strcmp (p, "-fgnu-runtime")) - flag_next_runtime = 0; - else if (!strcmp (p, "-fno-next-runtime")) - flag_next_runtime = 0; - else if (!strcmp (p, "-fno-gnu-runtime")) - flag_next_runtime = 1; - else if (!strcmp (p, "-fnext-runtime")) - flag_next_runtime = 1; - else if (!strcmp (p, "-print-objc-runtime-info")) - print_struct_values = 1; -#define CSTSTRCLASS "-fconstant-string-class=" - else if (!strncmp (p, CSTSTRCLASS, sizeof(CSTSTRCLASS) - 2)) { - if (strlen (argv[0]) <= strlen (CSTSTRCLASS)) - error ("no class name specified as argument to -fconstant-string-class"); - constant_string_class_name = xstrdup(argv[0] + sizeof(CSTSTRCLASS) - 1); - } -#undef CSTSTRCLASS - else - return c_decode_option (argc, argv); - - return 1; -} - static tree define_decl (declarator, declspecs) diff --git a/gcc/objc/objc-act.h b/gcc/objc/objc-act.h index 13b3e63de1f..aebccf8af52 100644 --- a/gcc/objc/objc-act.h +++ b/gcc/objc/objc-act.h @@ -24,7 +24,6 @@ Boston, MA 02111-1307, USA. */ /*** Public Interface (procedures) ***/ const char *objc_init PARAMS ((const char *)); -int objc_decode_option PARAMS ((int, char **)); const char *objc_printable_name PARAMS ((tree, int)); /* used by yyparse */ diff --git a/gcc/objc/objc-lang.c b/gcc/objc/objc-lang.c index 1922a639afe..111428abffd 100644 --- a/gcc/objc/objc-lang.c +++ b/gcc/objc/objc-lang.c @@ -40,7 +40,7 @@ static void objc_init_options PARAMS ((void)); #undef LANG_HOOKS_INIT_OPTIONS #define LANG_HOOKS_INIT_OPTIONS objc_init_options #undef LANG_HOOKS_DECODE_OPTION -#define LANG_HOOKS_DECODE_OPTION objc_decode_option +#define LANG_HOOKS_DECODE_OPTION c_common_decode_option #undef LANG_HOOKS_POST_OPTIONS #define LANG_HOOKS_POST_OPTIONS c_common_post_options #undef LANG_HOOKS_GET_ALIAS_SET |

