summaryrefslogtreecommitdiff
path: root/gcc/opts.c
diff options
context:
space:
mode:
authorNeil Booth <neil@daikokuya.co.uk>2003-06-11 22:21:10 +0000
committerNeil Booth <neil@gcc.gnu.org>2003-06-11 22:21:10 +0000
commit7fb26bb00173af1f41d3df4b5a7a43be9e3f12db (patch)
tree2af8d6bf007345fd5e6e0ba2072ebff79f20b89c /gcc/opts.c
parent24386c5ec6a6f91d94bb14a65f5ec8a5c84235bc (diff)
downloadgcc-7fb26bb00173af1f41d3df4b5a7a43be9e3f12db.tar.gz
hooks.c (hook_int_size_t_constcharptr_int_0): New.
* 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. From-SVN: r67799
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. */