diff options
author | jsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-08-30 10:30:57 +0000 |
---|---|---|
committer | jsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-08-30 10:30:57 +0000 |
commit | 19c8675bf720508b3d53a66f0b671817c4ebaf59 (patch) | |
tree | 2d9eb313ce47a3ac9f0c2ace6d148777d7029209 /gcc/opts.h | |
parent | e1b1a1eb87ef814bda144d359e57fb08546ed5d4 (diff) | |
download | gcc-19c8675bf720508b3d53a66f0b671817c4ebaf59.tar.gz |
* 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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@163637 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/opts.h')
-rw-r--r-- | gcc/opts.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/opts.h b/gcc/opts.h index 74e5733731d..b2ff86c637b 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. */ |