diff options
author | Neil Booth <neil@daikokuya.co.uk> | 2003-06-26 06:05:36 +0000 |
---|---|---|
committer | Neil Booth <neil@gcc.gnu.org> | 2003-06-26 06:05:36 +0000 |
commit | 9eee5e726de1e5d11bc77e0f2ae05c9c0c0916b6 (patch) | |
tree | a9ea757e9e1db36f41e321d59fa201fe81c41dee /gcc/java/lang.c | |
parent | 09ec461d3b3e2da96d39bbff6a9de0152a2798a0 (diff) | |
download | gcc-9eee5e726de1e5d11bc77e0f2ae05c9c0c0916b6.zip gcc-9eee5e726de1e5d11bc77e0f2ae05c9c0c0916b6.tar.gz gcc-9eee5e726de1e5d11bc77e0f2ae05c9c0c0916b6.tar.bz2 |
c-opts.c (missing_arg): Make non-static.
* c-opts.c (missing_arg): Make non-static.
(c_common_handle_option): Don't check for missing arguments.
* opts.c (handle_option): Check for missing arguments.
ada:
* misc.c (gnat_handle_option): Don't check for missing arguments.
f:
* top.c (ffe_handle_option): Don't check for missing arguments.
java:
* lang.c (java_handle_option): Don't check for missing arguments.
testsuite:
* const-str-2.m: Update.
From-SVN: r68517
Diffstat (limited to 'gcc/java/lang.c')
-rw-r--r-- | gcc/java/lang.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/gcc/java/lang.c b/gcc/java/lang.c index e389ddc..b8fc498 100644 --- a/gcc/java/lang.c +++ b/gcc/java/lang.c @@ -265,19 +265,12 @@ const struct lang_hooks lang_hooks = LANG_HOOKS_INITIALIZER; static int java_handle_option (size_t scode, const char *arg, int value) { - const struct cl_option *option = &cl_options[scode]; enum opt_code code = (enum opt_code) scode; /* Ignore file names. */ if (code == N_OPTS) return 1; - if (arg == NULL && (option->flags & (CL_JOINED | CL_SEPARATE))) - { - error ("missing argument to \"-%s\"", option->opt_text); - return 1; - } - switch (code) { default: |