From 2968917904553e903fa5741da3c4a5889ca6b8ae Mon Sep 17 00:00:00 2001 From: neil Date: Thu, 26 Jun 2003 06:05:36 +0000 Subject: * 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68517 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/f/ChangeLog | 4 ++++ gcc/f/top.c | 7 ------- 2 files changed, 4 insertions(+), 7 deletions(-) (limited to 'gcc/f') diff --git a/gcc/f/ChangeLog b/gcc/f/ChangeLog index 8d1b3858f3a..e1ac7ac5b91 100644 --- a/gcc/f/ChangeLog +++ b/gcc/f/ChangeLog @@ -1,3 +1,7 @@ +Thu Jun 26 07:06:29 2003 Neil Booth + + * top.c (ffe_handle_option): Don't check for missing arguments. + Wed Jun 25 06:52:12 2003 Neil Booth * top.c (ffe_handle_option): Add missing break;. diff --git a/gcc/f/top.c b/gcc/f/top.c index 36cdaa6f821..359dd2b8d32 100644 --- a/gcc/f/top.c +++ b/gcc/f/top.c @@ -175,19 +175,12 @@ ffe_init_options () int ffe_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: -- cgit v1.2.1