[PATH] fix PR 13087, documentation does not follow IMA/IMI (all at once compiling)
Andrew Pinski
pinskia@physics.uc.edu
Fri Nov 28 22:59:00 GMT 2003
I had messed up some conditionals and it was checking to see if a
linker option was really
a C or an Objective-C file so here is a new patch which fixes that.
The changelog has not changed.
ChangeLog:
* gcc.c: Every where use false/true instead of FALSE/TRUE.
(save_temps_flag): Boolize.
(build_search_list): Boolize first_time.
(set_collect_gcc_options): Likewise.
(print_multilib_info): Boolize print_at.
PR driver/13087
* gcc.c (default_compilers) <@c>: Do not run cc1 on the
preprocessed source if -save-temps. Do not run the
assembler on the asm if -tranditional-cpp.
(struct infile): Add incompiler, temp_filename, and compiled fields.
(preprocessing): New variable to track when using -save-temps on a
source.
(assembly_input): New variable to track if an inputfile is an assembly
file.
(have_c): New variable.
(have_o): Likewise.
(traditional_cpp_flag): Likewise.
(capital_e_flag): Likewise.
(process_command): Change have_c and have_o to global static variables.
Process also -traditional-cpp and -E.
(do_spec_1): Create new temp file for each source file for all
at once compiling.
Save the temp_filename into infiles's temp_filename.
<case 'i'>: Only do the combine of inputs when not preprocessing
Only add files that have the same language as the input_file_compiler
and that is not a linker flag.
(main): Allow `gcc test.c test1.c -o test' use compile all at once.
Separate out the creation of the intermediate files (fixes all at once
and -save-temps).
Do not lookup the compiler, use the cached one in infiles.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: temp.diff.txt
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20031128/f6b2ee37/attachment.txt>
-------------- next part --------------
Thanks,
Andrew Pinski
More information about the Gcc-patches
mailing list