[Bug preprocessor/39080] -MF writes dependencies for last file only

2013-05-10 Thread skannan at redhat dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39080

Shakthi Kannan skannan at redhat dot com changed:

   What|Removed |Added

 CC||skannan at redhat dot com

--- Comment #2 from Shakthi Kannan skannan at redhat dot com ---
The preprocessor documentation page mentions that the options need to be run on
each C source file:

3.11 Options Controlling the Preprocessor

These options control the C preprocessor, which is run on each C source file
before actual compilation.

Source:
http://gcc.gnu.org/onlinedocs/gcc-4.8.0/gcc/Preprocessor-Options.html#Preprocessor-Options


[Bug preprocessor/39080] -MF writes dependencies for last file only

2009-02-22 Thread tromey at gcc dot gnu dot org


--- Comment #1 from tromey at gcc dot gnu dot org  2009-02-22 17:12 ---
This is not really a bug.

In this scenario, cc1 is executed multiple times.  Each invocation
overwrites the -MF file.

A fix is not to pass multiple .c files to a given invocation of gcc.

Perhaps we should note this in the documentation.


-- 

tromey at gcc dot gnu dot org changed:

   What|Removed |Added

 CC||tromey at gcc dot gnu dot
   ||org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39080