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
| Name |
Last commit
|
Last update |
|---|---|---|
| .. | ||
| ChangeLog | Loading commit data... | |
| ChangeLog.0 | Loading commit data... | |
| Make-lang.in | Loading commit data... | |
| RELEASE-PREP | Loading commit data... | |
| ansify.c | Loading commit data... | |
| bad.c | Loading commit data... | |
| bad.def | Loading commit data... | |
| bad.h | Loading commit data... | |
| bit.c | Loading commit data... | |
| bit.h | Loading commit data... | |
| bld-op.def | Loading commit data... | |
| bld.c | Loading commit data... | |
| bld.h | Loading commit data... | |
| bugs.texi | Loading commit data... | |
| bugs0.texi | Loading commit data... | |
| com-rt.def | Loading commit data... | |
| com.c | Loading commit data... | |
| com.h | Loading commit data... | |
| config-lang.in | Loading commit data... | |
| data.c | Loading commit data... | |
| data.h | Loading commit data... | |
| equiv.c | Loading commit data... | |
| equiv.h | Loading commit data... | |
| expr.c | Loading commit data... | |
| expr.h | Loading commit data... | |
| ffe.texi | Loading commit data... | |
| fini.c | Loading commit data... | |
| g77.texi | Loading commit data... | |
| g77spec.c | Loading commit data... | |
| global.c | Loading commit data... | |
| global.h | Loading commit data... | |
| implic.c | Loading commit data... | |
| implic.h | Loading commit data... | |
| info-b.def | Loading commit data... | |
| info-k.def | Loading commit data... | |
| info-w.def | Loading commit data... | |
| info.c | Loading commit data... | |
| info.h | Loading commit data... | |
| intdoc.c | Loading commit data... | |
| intdoc.in | Loading commit data... | |
| intdoc.texi | Loading commit data... | |
| intrin.c | Loading commit data... | |
| intrin.def | Loading commit data... | |
| intrin.h | Loading commit data... | |
| invoke.texi | Loading commit data... | |
| lab.c | Loading commit data... | |
| lab.h | Loading commit data... | |
| lang-specs.h | Loading commit data... | |
| lang.opt | Loading commit data... | |
| lex.c | Loading commit data... | |
| lex.h | Loading commit data... | |
| malloc.c | Loading commit data... | |
| malloc.h | Loading commit data... | |
| name.c | Loading commit data... | |
| name.h | Loading commit data... | |
| news.texi | Loading commit data... | |
| news0.texi | Loading commit data... | |
| parse.c | Loading commit data... | |
| proj.h | Loading commit data... | |
| root.texi | Loading commit data... | |
| src.c | Loading commit data... | |
| src.h | Loading commit data... | |
| st.c | Loading commit data... | |
| st.h | Loading commit data... | |
| sta.c | Loading commit data... | |
| sta.h | Loading commit data... | |
| stb.c | Loading commit data... | |
| stb.h | Loading commit data... | |
| stc.c | Loading commit data... | |
| stc.h | Loading commit data... | |
| std.c | Loading commit data... | |
| std.h | Loading commit data... | |
| ste.c | Loading commit data... | |
| ste.h | Loading commit data... | |
| storag.c | Loading commit data... | |
| storag.h | Loading commit data... | |
| stp.c | Loading commit data... | |
| stp.h | Loading commit data... | |
| str-1t.fin | Loading commit data... | |
| str-2t.fin | Loading commit data... | |
| str-fo.fin | Loading commit data... | |
| str-io.fin | Loading commit data... | |
| str-nq.fin | Loading commit data... | |
| str-op.fin | Loading commit data... | |
| str-ot.fin | Loading commit data... | |
| str.c | Loading commit data... | |
| str.h | Loading commit data... | |
| sts.c | Loading commit data... | |
| sts.h | Loading commit data... | |
| stt.c | Loading commit data... | |
| stt.h | Loading commit data... | |
| stu.c | Loading commit data... | |
| stu.h | Loading commit data... | |
| stv.c | Loading commit data... | |
| stv.h | Loading commit data... | |
| stw.c | Loading commit data... | |
| stw.h | Loading commit data... | |
| symbol.c | Loading commit data... | |
| symbol.def | Loading commit data... | |
| symbol.h | Loading commit data... | |
| target.c | Loading commit data... | |
| target.h | Loading commit data... | |
| top.c | Loading commit data... | |
| top.h | Loading commit data... | |
| type.c | Loading commit data... | |
| type.h | Loading commit data... | |
| where.c | Loading commit data... | |
| where.h | Loading commit data... |