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).

[1069 byte] By [theMAGEa] at [2007-11-27 6:32:16]
# 1
Yeah, this is a know problem.It is gonna be fixed in one of the patches, most likely in the first one (which is targeted at July now).regards,__Fedor.
SFVa at 2007-7-12 17:57:37 > top of Java-index,Development Tools,Solaris and Linux Development Tools...