aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorBrendan Kehoe <brendan@gcc.gnu.org>1997-01-22 16:30:20 -0500
committerBrendan Kehoe <brendan@gcc.gnu.org>1997-01-22 16:30:20 -0500
commit69ce75dc0debae1aa0f133ae1739b3e9b628b9b4 (patch)
treef5f1c891d30c03f11ca5aa14a9fef1dca7793cfd /gcc
parent888302dbe42582a01f2ddfb2f31d03025f835172 (diff)
downloadgcc-69ce75dc0debae1aa0f133ae1739b3e9b628b9b4.zip
gcc-69ce75dc0debae1aa0f133ae1739b3e9b628b9b4.tar.gz
gcc-69ce75dc0debae1aa0f133ae1739b3e9b628b9b4.tar.bz2
i960.c (process_pragma): Call ungetc on the last character that was read by the while loop...
* 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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/config/i960/i960.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/config/i960/i960.c b/gcc/config/i960/i960.c
index 170d8cd..70e5f20 100644
--- a/gcc/config/i960/i960.c
+++ b/gcc/config/i960/i960.c
@@ -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)
{