aboutsummaryrefslogtreecommitdiff
path: root/gcc/opts.c
diff options
context:
space:
mode:
authorRichard Sandiford <rsandifo@redhat.com>2005-05-16 12:30:06 +0000
committerRichard Sandiford <rsandifo@gcc.gnu.org>2005-05-16 12:30:06 +0000
commitaeb70e782ac3089f3931b58b1291c1196a8e6c8f (patch)
tree1a880bfd7d5dee689ffa88c4d78e2661c5086ffd /gcc/opts.c
parent8b37cc6429c7771e6501354521446cfe47f157ff (diff)
downloadgcc-aeb70e782ac3089f3931b58b1291c1196a8e6c8f.zip
gcc-aeb70e782ac3089f3931b58b1291c1196a8e6c8f.tar.gz
gcc-aeb70e782ac3089f3931b58b1291c1196a8e6c8f.tar.bz2
Makefile.in (options.c): Tell optc-gen.awk to include config.h, system.h, coretypes.h and tm.h.
* Makefile.in (options.c): Tell optc-gen.awk to include config.h, system.h, coretypes.h and tm.h. (options.o): Update dependencies accordingly. * optc-gen.awk: Allow header_name to be a list of filenames. Handle the "Condition" flag. * opts.h (CL_DISABLED): New flag. * opts.c (handle_option): Print an error for CL_DISABLED options. * doc/options.texi: Document the "Condition" option flag. From-SVN: r99774
Diffstat (limited to 'gcc/opts.c')
-rw-r--r--gcc/opts.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/opts.c b/gcc/opts.c
index 97f8931..896728c 100644
--- a/gcc/opts.c
+++ b/gcc/opts.c
@@ -315,6 +315,14 @@ handle_option (const char **argv, unsigned int lang_mask)
/* We've recognized this switch. */
result = 1;
+ /* Check to see if the option is disabled for this configuration. */
+ if (option->flags & CL_DISABLED)
+ {
+ error ("command line option %qs"
+ " is not supported by this configuration", opt);
+ goto done;
+ }
+
/* Sort out any argument the switch takes. */
if (option->flags & CL_JOINED)
{