From 61ff2bdc6c2bc3f08a5e45aeb57e48ec21604e0a Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Tue, 27 Jul 2010 15:43:31 +0100 Subject: common.opt (o): Add MissingArgError. * common.opt (o): Add MissingArgError. * doc/options.texi (MissingArgError): Document. * hooks.c (hook_bool_constcharptr_size_t_false): Remove. * hooks.h (hook_bool_constcharptr_size_t_false): Remove. * langhooks-def.h (LANG_HOOKS_MISSING_ARGUMENT): Remove. (LANG_HOOKS_INITIALIZER): Remove missing_argument hook initializer. * langhooks.h (struct lang_hooks): Remove missing_argument. * optc-gen.awk: Handle MissingArgError and output new structure field initializers. * opts.c (read_cmdline_option): Use missing_argument_error field instead of missing_argument langhook. * opts.h (struct cl_option): Add missing_argument_error field. * system.h (LANG_HOOKS_MISSING_ARGUMENT): Poison. c-family: * c-common.h (c_common_missing_argument): Remove. * c-opts.c (c_common_missing_argument): Remove. * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=, idirafter, imacros, include, isysroot, isystem, iquote): Add MissingArgError. * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove. cp: * cp-objcp-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove. po: * exgettext: Also extract MissingArgError texts from .opt files. From-SVN: r162571 --- gcc/opts.h | 1 + 1 file changed, 1 insertion(+) (limited to 'gcc/opts.h') diff --git a/gcc/opts.h b/gcc/opts.h index fbc86b1..674843a 100644 --- a/gcc/opts.h +++ b/gcc/opts.h @@ -44,6 +44,7 @@ struct cl_option { const char *opt_text; const char *help; + const char *missing_argument_error; unsigned short back_chain; unsigned char opt_len; int neg_index; -- cgit v1.1