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/c.opt | |
parent | 89aa997ab8059f7f3663b8db9455e522fbd42d0b (diff) | |
download | gcc-7b086b11df0c065c531a6cf2aa505504fe9ec8e2.tar.gz |
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/c.opt')
-rw-r--r-- | gcc/c.opt | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/gcc/c.opt b/gcc/c.opt index f277512efbc..15c344b887e 100644 --- a/gcc/c.opt +++ b/gcc/c.opt @@ -32,7 +32,11 @@ ; compiler recognize the switch, as declared by "Language" entries. ; If the switch takes an argument, then you should also specify ; "Joined" and/or "Separate" to indicate where the argument can -; appear. +; appear. If a Joined argument can legitimately be omitted, specify +; "JoinedOrMissing" instead of "Joined". If the argument to a switch +; is a non-negative integer, you can specify "UInteger" and the switch +; decoder will convert the argument for you, or complain to the user +; if the argument is invalid. ; Comments can appear on their own line anwhere in the file, preceded ; by a semicolon. Whitespace is permitted before the semicolon. @@ -311,7 +315,7 @@ d C ObjC C++ ObjC++ Joined fabi-version= -C++ ObjC++ Joined +C++ ObjC++ Joined UInteger faccess-control C++ ObjC++ @@ -479,10 +483,10 @@ fstrict-prototype C++ ObjC++ ftabstop= -C ObjC C++ ObjC++ Joined RejectNegative +C ObjC C++ ObjC++ Joined RejectNegative UInteger ftemplate-depth- -C++ ObjC++ Joined +C++ ObjC++ Joined RejectNegative UInteger fthis-is-variable C++ ObjC++ |