bug in automatic dependency generator
Hello,
I just downloaded the release of SunStudio 12 for Linux and I found a bug -- even worse, a regression from the February 2007 Express edition: the .d files contain an extra \n:
Here is a work session:
florin@hera $ make CC=suncc
suncc -xMMD -g -xO1 -xdebugformat=dwarf -m64 -xc99=all -xCC -Xc -D_XOPEN_SOURCE=600 -D_BSD_SOURCE-c -o test1.o test1.c
suncc -xMMD -g -xO1 -xdebugformat=dwarf -m64 -xc99=all -xCC -Xc -D_XOPEN_SOURCE=600 -D_BSD_SOURCE-c -o sequitur.o sequitur.c
suncc -lmtest1.o sequitur.o-o test1
florin@hera $ make clean
sequitur.d:7: *** missing separator. Stop.
florin@hera $ cat sequitur.d
sequitur.o: sequitur.c \
/usr/sun/sunstudio12/prod/include/cc/features.h \
/usr/sun/sunstudio12/prod/include/cc/sys/cdefs.h \
/usr/sun/sunstudio12/prod/include/cc/stddef.h \
/usr/sun/sunstudio12/prod/include/cc/sys/isa_defs.h
\
sequitur.h
The last slash is not an artifact of posting into this text entry box. This is what is in the file(s).

