re PR preprocessor/8055 (PATCH: cpp0 dies with SIG11 when building FreeBSD kernel)
authorZack Weinberg <zack@gcc.gnu.org>
Sat, 28 Sep 2002 00:30:37 +0000 (00:30 +0000)
committerZack Weinberg <zack@gcc.gnu.org>
Sat, 28 Sep 2002 00:30:37 +0000 (00:30 +0000)
commit57147be1b61543b6ae26836c03f7138e3121ecfe
treee9272d171d25a90ccbdb45733b655a0414aae29c
parentb1af5a30a54316b085b979805a6bced0ff93a7b1
re PR preprocessor/8055 (PATCH: cpp0 dies with SIG11 when building FreeBSD kernel)

2002-09-27  Alexander N. Kabaev <ak03@gte.com>

PR preprocessor/8055
* cppmacro.c (stringify_arg): Do not overflow the buffer
with the terminating NUL when the argument to be stringified
has no tokens.
* testsuite/gcc.dg/cpp/20020927-1.c: New.

From-SVN: r57599
gcc/ChangeLog
gcc/cppmacro.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/cpp/20020927-1.c [new file with mode: 0644]