aboutsummaryrefslogtreecommitdiff
path: root/gcc/opts.h
diff options
context:
space:
mode:
authorNeil Booth <neil@daikokuya.co.uk>2003-06-16 05:47:07 +0000
committerNeil Booth <neil@gcc.gnu.org>2003-06-16 05:47:07 +0000
commit7b086b11df0c065c531a6cf2aa505504fe9ec8e2 (patch)
tree67395c06dd702d1671de8501d39fbe92f55618bd /gcc/opts.h
parent89aa997ab8059f7f3663b8db9455e522fbd42d0b (diff)
downloadgcc-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.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/opts.h b/gcc/opts.h
index 31c6e8e..abb3963 100644
--- a/gcc/opts.h
+++ b/gcc/opts.h
@@ -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