projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
888302d
)
i960.c (process_pragma): Call ungetc on the last character that was read by the while...
author
Brendan Kehoe
<brendan@gcc.gnu.org>
Wed, 22 Jan 1997 21:30:20 +0000
(16:30 -0500)
committer
Brendan 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
patch
|
blob
|
history
diff --git
a/gcc/config/i960/i960.c
b/gcc/config/i960/i960.c
index 170d8cdcebb4cdb62e1c7c81c0a7c3dd7515dbab..70e5f208ecced12f20b53034c523ae43f23efaa2 100644
(file)
--- 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)
{