diff options
author | Neil Booth <neil@daikokuya.co.uk> | 2003-06-16 05:47:07 +0000 |
---|---|---|
committer | Neil Booth <neil@gcc.gnu.org> | 2003-06-16 05:47:07 +0000 |
commit | 7b086b11df0c065c531a6cf2aa505504fe9ec8e2 (patch) | |
tree | 67395c06dd702d1671de8501d39fbe92f55618bd /gcc/opts.h | |
parent | 89aa997ab8059f7f3663b8db9455e522fbd42d0b (diff) | |
download | gcc-7b086b11df0c065c531a6cf2aa505504fe9ec8e2.zip gcc-7b086b11df0c065c531a6cf2aa505504fe9ec8e2.tar.gz gcc-7b086b11df0c065c531a6cf2aa505504fe9ec8e2.tar.bz2 |
c-opts.c (c_common_handle_option): s/on/value/.
* c-opts.c (c_common_handle_option): s/on/value/.
(OPT_fabi_version_, OPT_ftabstop_, OPT_ftemplate_depth_): Use value
directly rather than converting the argument.
* c.opt: Update docs. Use UInteger where appropriate.
* common.opt: Use UInteger where appropriate.
* opts.c (integral_argument): New.
(handle_argument): Handle integral arguments, and optional
joined arguments.
(common_handle_option): Update.
* opts.h (CL_MISSING_OK, CL_UINTEGER): New.
* opts.sh: Handle JoinedOrMissing and UInteger flags.
java:
* lang.c (java_handle_option): Special-casing of optional
joined arguments no longer needed.
* lang.opt: Update switches that take optional argument.
From-SVN: r67999
Diffstat (limited to 'gcc/opts.h')
-rw-r--r-- | gcc/opts.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -36,6 +36,8 @@ extern const unsigned int cl_options_count; #define CL_JOINED (1 << 24) /* If takes joined argument. */ #define CL_SEPARATE (1 << 25) /* If takes a separate argument. */ #define CL_REJECT_NEGATIVE (1 << 26) /* Reject no- form. */ -#define CL_COMMON (1 << 27) /* Language-independent. */ +#define CL_MISSING_OK (1 << 27) /* Missing argument OK (joined). */ +#define CL_UINTEGER (1 << 28) /* Argument is an integer >=0. */ +#define CL_COMMON (1 << 29) /* Language-independent. */ #endif |