From: Nick Clifton Date: Wed, 4 Jun 2008 16:10:21 +0000 (+0000) Subject: * app.c (do_scrub_chars): Do not UNGET an EOF value. X-Git-Tag: msnyder-reverse-20080609-branchpoint~62 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=83bd74026cbdb8bfbdd44f3d467a77e009f8df31;p=thirdparty%2Fbinutils-gdb.git * app.c (do_scrub_chars): Do not UNGET an EOF value. --- diff --git a/gas/ChangeLog b/gas/ChangeLog index 46f9f8c00f3..b870ed1263c 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,7 @@ +2008-06-04 Nick Clifton + + * app.c (do_scrub_chars): Do not UNGET an EOF value. + 2008-06-03 H.J. Lu * config/tc-i386.c (set_sse_check): New. diff --git a/gas/app.c b/gas/app.c index d8d0cc552d3..4ba9edc7bce 100644 --- a/gas/app.c +++ b/gas/app.c @@ -832,7 +832,8 @@ do_scrub_chars (int (*get) (char *, int), char *tostart, int tolen) /* Only keep this white if there's no white *after* the colon. */ ch2 = GET (); - UNGET (ch2); + if (ch2 != EOF) + UNGET (ch2); if (!IS_WHITESPACE (ch2)) { state = 9; @@ -1116,7 +1117,8 @@ do_scrub_chars (int (*get) (char *, int), char *tostart, int tolen) #ifdef DOUBLEBAR_PARALLEL case LEX_IS_DOUBLEBAR_1ST: ch2 = GET (); - UNGET (ch2); + if (ch2 != EOF) + UNGET (ch2); if (ch2 != '|') goto de_fault;