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/c-opts.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/c-opts.c')
-rw-r--r-- | gcc/c-opts.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/gcc/c-opts.c b/gcc/c-opts.c index 7febbf3..dbe7e90 100644 --- a/gcc/c-opts.c +++ b/gcc/c-opts.c @@ -100,7 +100,7 @@ static size_t deferred_count, deferred_size; /* Number of deferred options scanned for -include. */ static size_t include_cursor; -static void missing_arg (enum opt_code); +void missing_arg (enum opt_code); static void set_Wimplicit (int); static void print_help (void); static void handle_OPT_d (const char *); @@ -130,7 +130,7 @@ static struct deferred_opt /* Complain that switch OPT_INDEX expects an argument but none was provided. */ -static void +void missing_arg (enum opt_code code) { const char *opt_text = cl_options[code].opt_text; @@ -257,12 +257,6 @@ c_common_handle_option (size_t scode, const char *arg, int value) return 1; } - if (arg == NULL && (option->flags & (CL_JOINED | CL_SEPARATE))) - { - missing_arg (code); - return 1; - } - switch (code) { default: |