This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug preprocessor/215] Problem when generating depencies with -MD and -MMD
- From: "maslowski73 at wp dot pl" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 8 Nov 2005 12:09:12 -0000
- Subject: [Bug preprocessor/215] Problem when generating depencies with -MD and -MMD
- References: <bug-215-1957@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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