* app.c (do_scrub_chars): Do not UNGET an EOF value.
authorNick Clifton <nickc@redhat.com>
Wed, 4 Jun 2008 16:10:21 +0000 (16:10 +0000)
committerNick Clifton <nickc@redhat.com>
Wed, 4 Jun 2008 16:10:21 +0000 (16:10 +0000)
gas/ChangeLog
gas/app.c

index 46f9f8c00f31f4f6e730a08968e8d2a697f315bb..b870ed1263c9b345a71c67589c971256fd1234d6 100644 (file)
@@ -1,3 +1,7 @@
+2008-06-04  Nick Clifton  <nickc@redhat.com>
+
+       * app.c (do_scrub_chars): Do not UNGET an EOF value.
+
 2008-06-03  H.J. Lu  <hongjiu.lu@intel.com>
 
        * config/tc-i386.c (set_sse_check): New.
index d8d0cc552d32beb2de8cc882fc517db740fa8041..4ba9edc7bce97859c26c24666815961806135ac8 100644 (file)
--- 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;
 
This page took 0.027671 seconds and 4 git commands to generate.