diff options
author | Caroline Tice <ctice@apple.com> | 2004-04-05 19:23:27 +0000 |
---|---|---|
committer | Caroline Tice <ctice@gcc.gnu.org> | 2004-04-05 12:23:27 -0700 |
commit | 0855eab7a30bb98dc47a4a23de3dc1da85503bfb (patch) | |
tree | 54ddbad12efc3bc6774bcd0268a91392513224da /gcc/f | |
parent | 26be75dbef9e280475d6fdbd3f38955d511ca02d (diff) | |
download | gcc-0855eab7a30bb98dc47a4a23de3dc1da85503bfb.zip gcc-0855eab7a30bb98dc47a4a23de3dc1da85503bfb.tar.gz gcc-0855eab7a30bb98dc47a4a23de3dc1da85503bfb.tar.bz2 |
gcc.c (combine_flag): New global variable, for new driver option.
2004-04-05 Caroline Tice <ctice@apple.com>
* gcc.c (combine_flag): New global variable, for new driver option.
(struct compiler): Add two new fields, to be used when
combining multiple input files in a single pass (IMA).
(default_compilers): Add values for the new fields to all
compiler entries. Modify the "@c" compiler entry for doing IMA
properly with "-save-temps" and the "combine" flag.
(option_map): Add new driver option, "--combine", to tell driver
to pass multiple input files to compiler at one time.
(have_o_argbuf_index): New global variable.
(store_arg): Modify to assign value to have_o_argbuf_index.
(struct infile): Add three new fields, to help with IMA.
(display_help): Add help for new "combine" option.
(process_command): Remove local variable have_o; add code to check
for new "combine" option; remove assignment to combine_inputs.
(do_spec_1): Modify to deal with IMA better.
(main): Make variable 'lang_n_infiles' local to entire function
rather than to a single block. Use flag combine_flag to
determine whether to do IMA or not; Modify loop initializing
infiles to deal properly with linker files.
Add code for doing preprocessing in presence of
IMA with "-save-temps" flag. Modify "main" loop to handle
multiple input files, in multiple languages, with or without
preprocessing, gracefully.
* toplev.c (set_src_pwd): Modify to not complain if attempting to
re-set it to same directory it's previously been set to (avoid
irritating, meaningless warning messages when doing IMA with
save-temps).
* doc/invoke.texi: Add "-combine" to list of Overall Options;
remove documentation about IMA that is no longer accurate; Add
documentation explaining what "-combine" does.
* ada/lang-specs.h: Add initialization values for new fields in
"struct compiler".
* cp/lang-specs.h: Likewise.
* f/lang-specs.h: Likewise.
* java/lang-specs.h: Likewise.
* objc/lang-specs.h: Likewise.
* treelang/lang-specs.h: Likewise.
Fix gcc driver to work properly with IMI.
From-SVN: r80435
Diffstat (limited to 'gcc/f')
-rw-r--r-- | gcc/f/lang-specs.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/gcc/f/lang-specs.h b/gcc/f/lang-specs.h index 9ed51ef..f1281d6 100644 --- a/gcc/f/lang-specs.h +++ b/gcc/f/lang-specs.h @@ -25,23 +25,23 @@ the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA /* This is the contribution to the `default_compilers' array in gcc.c for g77. */ - {".F", "@f77-cpp-input", 0}, - {".fpp", "@f77-cpp-input", 0}, - {".FPP", "@f77-cpp-input", 0}, + {".F", "@f77-cpp-input", 0, 0, 0}, + {".fpp", "@f77-cpp-input", 0, 0, 0}, + {".FPP", "@f77-cpp-input", 0, 0, 0}, {"@f77-cpp-input", "cc1 -E -traditional-cpp -D_LANGUAGE_FORTRAN %(cpp_options) \ %{E|M|MM:%(cpp_debug_options)}\ %{!M:%{!MM:%{!E: -o %|.f |\n\ - f771 %|.f %(cc1_options) %{I*} %{!fsyntax-only:%(invoke_as)}}}}", 0}, - {".r", "@ratfor", 0}, + f771 %|.f %(cc1_options) %{I*} %{!fsyntax-only:%(invoke_as)}}}}", 0, 0, 0}, + {".r", "@ratfor", 0, 0, 0}, {"@ratfor", "%{C:%{!E:%eGCC does not support -C without using -E}}\ %{CC:%{!E:%eGCC does not support -CC without using -E}}\ ratfor %{C} %{CC} %{v} %{E:%W{o*}} %{!E: %{!pipe:-o %g.f} %i |\n\ - f771 %m.f %(cc1_options) %{I*} %{!fsyntax-only:%(invoke_as)}}", 0}, - {".f", "@f77", 0}, - {".for", "@f77", 0}, - {".FOR", "@f77", 0}, + f771 %m.f %(cc1_options) %{I*} %{!fsyntax-only:%(invoke_as)}}", 0, 0, 0}, + {".f", "@f77", 0, 0, 0}, + {".for", "@f77", 0, 0, 0}, + {".FOR", "@f77", 0, 0, 0}, {"@f77", "%{!M:%{!MM:%{!E:f771 %i %(cc1_options) %{I*}\ - %{!fsyntax-only:%(invoke_as)}}}}", 0}, + %{!fsyntax-only:%(invoke_as)}}}}", 0, 0, 0}, |