summaryrefslogtreecommitdiff
path: root/gcc/opts.c
diff options
context:
space:
mode:
authorneil <neil@138bc75d-0d04-0410-961f-82ee72b054a4>2003-06-11 22:21:10 +0000
committerneil <neil@138bc75d-0d04-0410-961f-82ee72b054a4>2003-06-11 22:21:10 +0000
commite938cdf5e5499e3065f0e8ec50694d9ffdb7e854 (patch)
tree2af8d6bf007345fd5e6e0ba2072ebff79f20b89c /gcc/opts.c
parent266d04c543304bff5b2a56d84706e294ca6142f7 (diff)
downloadgcc-e938cdf5e5499e3065f0e8ec50694d9ffdb7e854.tar.gz
* hooks.c (hook_int_size_t_constcharptr_int_0): New.
* hooks.h (hook_int_size_t_constcharptr_int_0): New. * langhooks-def.h (lhd_decode_option, LANG_HOOKS_DECODE_OPTION): Die. (LANG_HOOKS_HANDLE_OPTION, LANG_HOOKS_INITIALIZER): Update. * langhooks.c (lhd_decode_option): Remove. * langhooks.h (struct lang_hooks): Remove decode_option. * opts.c (handle_option): No longer use decode_option. java: * Make-lang.in: Handle mostlyclean. treelang: * Make-lang.in: Update for option handling. * lang.opt: New. * tree1.c: Include opts.h and t-options.h. (treelang_decode_option): Remove. (treelang_handle_option): New. * treetree.c (LANG_HOOKS_DECODE_OPTION): Remove. (LANG_HOOKS_HANDLE_OPTION): Override. * treetree.h (treelang_decode_option): Remove. (treelang_handle_option): New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@67799 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/opts.c')
-rw-r--r--gcc/opts.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/gcc/opts.c b/gcc/opts.c
index 0911d388ff8..25dacf2131d 100644
--- a/gcc/opts.c
+++ b/gcc/opts.c
@@ -118,7 +118,7 @@ find_opt (const char *input, int lang_mask)
/* Handle the switch beginning at ARGV, with ARGC remaining. */
int
-handle_option (int argc, char **argv, int lang_mask)
+handle_option (int argc ATTRIBUTE_UNUSED, char **argv, int lang_mask)
{
size_t opt_index;
const char *opt, *arg = 0;
@@ -127,10 +127,6 @@ handle_option (int argc, char **argv, int lang_mask)
int result = 0, temp;
const struct cl_option *option;
- /* If the front end isn't yet converted, use the old hook. */
- if (!lang_hooks.handle_option)
- return (*lang_hooks.decode_option) (argc, argv);
-
opt = argv[0];
/* Interpret "-" or a non-switch as a file name. */