diff options
author | Neil Booth <neil@daikokuya.co.uk> | 2003-06-14 12:26:36 +0000 |
---|---|---|
committer | Neil Booth <neil@gcc.gnu.org> | 2003-06-14 12:26:36 +0000 |
commit | d7b426187568d50a4ed8a14d319970f8d2c34eb2 (patch) | |
tree | c305de4bdbbe6e6f7807a99ebcbbb965f0549ad6 /gcc/configure | |
parent | 81d2d258f5b5578131c9add593df10bd4758f219 (diff) | |
download | gcc-d7b426187568d50a4ed8a14d319970f8d2c34eb2.zip gcc-d7b426187568d50a4ed8a14d319970f8d2c34eb2.tar.gz gcc-d7b426187568d50a4ed8a14d319970f8d2c34eb2.tar.bz2 |
Makefile.in: Update to use common.opt and lang_opt_files.
* Makefile.in: Update to use common.opt and lang_opt_files.
(c-options.c, c-options.h): Remove.
(options.c, options.h): Add.
* c-opts.c: Include options.h not c-options.h.
* common.opt: New file.
* configure, configure.in: Add lang_opt_files.
* opts.c: Include flags.h and diagnostic.h.
(common_handle_option): New.
(handle_option): Update to recognize common options and all
language-dependent options.
* opts.h (CL_F77, CL_JAVA, CL_ADA, CL_COMMON, CL_TREELANG): New.
(struct cl_option): Make flags of type int.
* opts.h: Flag option with front ends to which it applies.
Handle duplicate options.
* toplev.c (filename): Remove.
(independent_decode_option): Don't handle filenames and -quiet.
(process_options, do_compile): Update.
ada:
* Make-lang.in: Update to use options.c and options.h.
* misc.c: Include options.h not aoptions.h.
(gnat_handle_option): Abort on unrecognized switch.
(gnat_init_options): Request Ada switches.
cp:
* Make-lang.in: Remove c-options.o.
f:
* Make-lang.in: Update to use options.c and options.h.
* top.c: Include options.h not f-options.h.
(gnat_handle_option): Abort on unrecognized switch.
(ffe_init_options): From com.c. Request F77 options.
(ffe_handle_options): Abort on unrecognized switch.
* com.c (ffe_init_options): Move to top.c.
* top.h (fee_init_options): New.
java:
* Make-lang.in: Update to use options.c and options.h.
* lang.c: Include options.h not j-options.h.
(java_handle_option): Abort on unrecognized option.
(java_init_options): Request Java switches.
treelang:
* Make-lang.in: Update to use options.c and options.h.
* tree1.c: Include options.h not t-options.h.
(treelang_init_options): New.
(treelang_handle_option): Abort on unrecognized switch.
* treetree.c (LANG_HOOKS_INIT_OPTIONS): Override.
* treetree.h (treelang_init_options): New.
From-SVN: r67941
Diffstat (limited to 'gcc/configure')
-rwxr-xr-x | gcc/configure | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/gcc/configure b/gcc/configure index cae6648..b4ac3e0 100755 --- a/gcc/configure +++ b/gcc/configure @@ -2440,7 +2440,7 @@ fi # Find some useful tools -for ac_prog in gawk mawk nawk awk +for ac_prog in mawk gawk nawk awk do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 @@ -8799,11 +8799,15 @@ fi # Make empty files to contain the specs and options for each language. # Then add #include lines to for a compiler that has specs and/or options. +lang_opt_files= lang_specs_files= lang_options_files= lang_tree_files= for subdir in . $subdirs do + if test -f $srcdir/$subdir/lang.opt; then + lang_opt_files="$lang_opt_files $srcdir/$subdir/lang.opt" + fi if test -f $srcdir/$subdir/lang-specs.h; then lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h" fi @@ -9080,6 +9084,7 @@ ${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag $srcdir "$subdirs" "$dep_host_xma + # Echo that links are built if test x$host = x$target then @@ -9387,6 +9392,7 @@ s%@host_xm_file@%$host_xm_file%g s%@host_xm_defines@%$host_xm_defines%g s%@out_host_hook_obj@%$out_host_hook_obj%g s%@install@%$install%g +s%@lang_opt_files@%$lang_opt_files%g s%@lang_options_files@%$lang_options_files%g s%@lang_specs_files@%$lang_specs_files%g s%@lang_tree_files@%$lang_tree_files%g |