From 184eb658fe5d4897c705d28ad01c3bd51e8fc62f Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Mon, 30 Aug 2010 11:30:57 +0100 Subject: opts.h (CL_ERR_NEGATIVE): Define. * opts.h (CL_ERR_NEGATIVE): Define. * opts.c (unknown_option_callback): Don't postpone warnings for options marked with CL_ERR_NEGATIVE. * opts-common.c (decode_cmdline_option): Set CL_ERR_NEGATIVE error for negative versions of CL_REJECT_NEGATIVE options. testsuite: * gcc.dg/opts-1.c: Expect errors, not warnings. From-SVN: r163637 --- gcc/opts.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gcc/opts.h') diff --git a/gcc/opts.h b/gcc/opts.h index 74e5733..b2ff86c 100644 --- a/gcc/opts.h +++ b/gcc/opts.h @@ -102,6 +102,9 @@ extern const unsigned int cl_lang_count; #define CL_ERR_MISSING_ARG (1 << 1) /* Argument required but missing. */ #define CL_ERR_WRONG_LANG (1 << 2) /* Option for wrong language. */ #define CL_ERR_UINT_ARG (1 << 3) /* Bad unsigned integer argument. */ +#define CL_ERR_NEGATIVE (1 << 4) /* Negative form of option + not permitted (together + with OPT_SPECIAL_unknown). */ /* Structure describing the result of decoding an option. */ -- cgit v1.1