cpplib.c (do_undef): EOF immediately after '#undef FOO' is not an error.

Wed Dec 23 17:30:18 1998  Zack Weinberg  <zack@rabi.phys.columbia.edu>
	* cpplib.c (do_undef): EOF immediately after '#undef FOO' is not an
	error.

From-SVN: r24484
This commit is contained in:
Zack Weinberg 1999-01-04 12:15:43 +00:00 committed by Dave Brolley
parent 0ded1f18fa
commit 16deb3fb8f
2 changed files with 6 additions and 1 deletions

View File

@ -198,6 +198,11 @@ Thu Dec 24 10:39:57 1998 Stan Cox <scox@cygnus.com>
* gcc.c (execute): Enable -pipe with win32.
Wed Dec 23 17:30:18 1998 Zack Weinberg <zack@rabi.phys.columbia.edu>
* cpplib.c (do_undef): EOF immediately after '#undef FOO' is not an
error.
Wed Dec 23 10:27:44 1998 Nick Clifton <nickc@cygnus.com>
* config/arm/t-arm-elf: Add multiplib option for leading

View File

@ -3309,7 +3309,7 @@ do_undef (pfile, keyword)
name[limit - buf] = '\0';
token = get_directive_token (pfile);
if (token != CPP_VSPACE)
if (token != CPP_VSPACE && token != CPP_POP)
{
cpp_pedwarn (pfile, "junk on line after #undef");
skip_rest_of_line (pfile);