aboutsummaryrefslogtreecommitdiff
path: root/gcc/java/lang.c
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/java/lang.c
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/java/lang.c')
-rw-r--r--gcc/java/lang.c13
1 files changed, 2 insertions, 11 deletions
diff --git a/gcc/java/lang.c b/gcc/java/lang.c
index ff20985..07d5647 100644
--- a/gcc/java/lang.c
+++ b/gcc/java/lang.c
@@ -274,17 +274,8 @@ java_handle_option (size_t scode, const char *arg, int value)
if (arg == NULL && (option->flags & (CL_JOINED | CL_SEPARATE)))
{
- /* These can take an empty argument. */
- if (code == OPT_fassume_compiled_
- || code == OPT_fclasspath_
- || code == OPT_fCLASSPATH_
- || code == OPT_fbootclasspath_)
- arg = "";
- else
- {
- error ("missing argument to \"-%s\"", option->opt_text);
- return 1;
- }
+ error ("missing argument to \"-%s\"", option->opt_text);
+ return 1;
}
switch (code)