[gnu.gcc.bug] Macro stringification and line continuation problem?

satz@CISCO.COM (Greg Satz) (08/28/89)

The following program when run through the GNU preprocessor doesn't quite
behave like I would expect.

#ifdef __GNUC__
#define D(s) #s
#else
#define	D(s)	"s"
#endif

char *c = D(now is the time foo all testing to formkwlkcxmnemwcwerndsgfwer\
foo bar testing 1 2 3);

Following are the results on a Sun 3/280 with gcc -E -v foo.c

gcc version 1.32
 /usr/src/gnu/gcc-1.35/cpp -v -undef -D__GNUC__ -Dmc68000 -Dsun -Dunix -D__mc68000__ -D__sun__ -D__unix__ -D__HAVE_68881__ -Dmc68020 foo.c
# 1 "foo.c"

char *c = "now is the time foo all testing to formkwlkcxmnemwcwerndsgfwer\oo bar testing 1 2 3" ;
GNU CPP version 1.35

Note that the gcc driver is 1.32 but the preprocessor in question is 1.35.
It looks like the cpp stringification code manages to lose the newline of
the continuation line. Am I misunderstanding stringification or is this a
bug?

Greg Satz
cisco