diff options
author | H.J. Lu <hongjiu.lu@intel.com> | 2006-05-17 05:06:52 +0000 |
---|---|---|
committer | H.J. Lu <hjl@gcc.gnu.org> | 2006-05-16 22:06:52 -0700 |
commit | 8dc3f290fee3e2756afc990653fda7203d71d2a7 (patch) | |
tree | 64c327dcef68730b3ff0a67c97ca868a25708cb6 /gcc/optc-gen.awk | |
parent | 2ed4b0ce33a6cecfb4f00c3be25f526f8438feee (diff) | |
download | gcc-8dc3f290fee3e2756afc990653fda7203d71d2a7.tar.gz |
Makefile.in (GCC_OBJS): Replace options.o with gcc-options.o.
gcc/
2006-05-16 H.J. Lu <hongjiu.lu@intel.com>
* Makefile.in (GCC_OBJS): Replace options.o with gcc-options.o.
(gcc-options.o): New rule.
* optc-gen.awk: Protect variables for gcc-options.o with
#ifdef GCC_DRIVER/#endif.
gcc/java/
2006-05-16 H.J. Lu <hongjiu.lu@intel.com>
* lang.opt (femit-class-file): Remove VarExists.
From-SVN: r113841
Diffstat (limited to 'gcc/optc-gen.awk')
-rw-r--r-- | gcc/optc-gen.awk | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/optc-gen.awk b/gcc/optc-gen.awk index da199171d27..aa6bb11a10c 100644 --- a/gcc/optc-gen.awk +++ b/gcc/optc-gen.awk @@ -62,7 +62,9 @@ for (i = 1; i <= n_headers; i++) print "#include " quote "opts.h" quote print "#include " quote "intl.h" quote print "" +print "#ifdef GCC_DRIVER" print "int target_flags;" +print "#endif /* GCC_DRIVER */" print "" for (i = 0; i < n_opts; i++) { @@ -75,6 +77,7 @@ for (i = 0; i < n_opts; i++) { if (name in var_seen) continue; init = "" + gcc_driver = 1 } else { init = opt_args("Init", flags[i]) @@ -82,11 +85,16 @@ for (i = 0; i < n_opts; i++) { init = " = " init; else if (name in var_seen) continue; + gcc_driver = 0 } + if (gcc_driver == 1) + print "#ifdef GCC_DRIVER" print "/* Set by -" opts[i] "." print " " help[i] " */" print var_type(flags[i]) name init ";" + if (gcc_driver == 1) + print "#endif /* GCC_DRIVER */" print "" var_seen[name] = 1; |