This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug preprocessor/215] Problem when generating depencies with -MD and -MMD



------- Comment #3 from maslowski73 at wp dot pl  2005-11-08 12:09 -------
GCC version 3.3.6 and 3.3.2 have this bug either.

The dependency files appear in the current directory.

But, if the preprocessing fails the dependency file (although empty) remains in
the right place.

How to repeat:

echo "#include" > test.c
gcc -MD -o /tmp/test.o -c test.c
ls -l /tmp/test.d
cat /tmp/test.d

echo "#include <stdio.h>" > test.c
gcc -MD -o /tmp/test.o -c test.c
ls -l /tmp/test.d ./test.d

cat /tmp/test.d
cat ./test.d


-- 

maslowski73 at wp dot pl changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |maslowski73 at wp dot pl


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]