i960.c (process_pragma): Call ungetc on the last character that was read by the while...
authorBrendan Kehoe <brendan@gcc.gnu.org>
Wed, 22 Jan 1997 21:30:20 +0000 (16:30 -0500)
committerBrendan Kehoe <brendan@gcc.gnu.org>
Wed, 22 Jan 1997 21:30:20 +0000 (16:30 -0500)
* i960/i960.c (process_pragma): Call ungetc on the last character
that was read by the while loop, to make sure the parser sees it.

From-SVN: r13546

gcc/config/i960/i960.c

index 170d8cdcebb4cdb62e1c7c81c0a7c3dd7515dbab..70e5f208ecced12f20b53034c523ae43f23efaa2 100644 (file)
@@ -124,6 +124,11 @@ process_pragma (finput, t)
        }
       *s = '\0';
 
+      /* We had to read a non-numerical character to get out of the
+        while loop---often a newline.  So, we have to put it back to
+        make sure we continue to parse everything properly.  */
+      ungetc (c, finput);
+
       align = atoi (buf);
       switch (align)
        {