OSDN Git Service

* i960/i960.c (process_pragma): Call ungetc on the last character
authorbrendan <brendan@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 22 Jan 1997 21:30:20 +0000 (21:30 +0000)
committerbrendan <brendan@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 22 Jan 1997 21:30:20 +0000 (21:30 +0000)
that was read by the while loop, to make sure the parser sees it.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@13546 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/config/i960/i960.c

index 170d8cd..70e5f20 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)
        {