YY_INPUT returns 0 on end of input, not EOF.
PR 24827
* ldlex.l (comment): Check for 0 return from input(), not EOF.
+2019-07-20 Alan Modra <amodra@gmail.com>
+
+ PR 24827
+ * ldlex.l (comment): Check for 0 return from YY_INPUT, not EOF.
+
2019-07-19 Alan Modra <amodra@gmail.com>
* testsuite/ld-powerpc/tlsgd.d,
while (1)
{
c = input();
- while (c != '*' && c != EOF)
+ while (c != '*' && c != 0)
{
if (c == '\n')
lineno++;
if (c == '\n')
lineno++;
- if (c == EOF)
+ if (c == 0)
{
einfo (_("%F%P: EOF in comment\n"));
break;