Commit 7113a160 by Alexandre Oliva Committed by Alexandre Oliva

* cpplib.c (do_line): Pedwarn for #line > 32767.

From-SVN: r32006
parent 4082292a
2000-02-16 Alexandre Oliva <oliva@lsd.ic.unicamp.br> 2000-02-16 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
* cpplib.c (do_line): Pedwarn for #line > 32767.
* c-lex.c (readescape): Warn about '\x', but do not reject it. * c-lex.c (readescape): Warn about '\x', but do not reject it.
2000-02-15 Jonathan Larmour <jlarmour@redhat.co.uk> 2000-02-15 Jonathan Larmour <jlarmour@redhat.co.uk>
......
...@@ -1346,7 +1346,7 @@ do_line (pfile, keyword) ...@@ -1346,7 +1346,7 @@ do_line (pfile, keyword)
} }
CPP_SET_WRITTEN (pfile, old_written); CPP_SET_WRITTEN (pfile, old_written);
if (CPP_PEDANTIC (pfile) && new_lineno <= 0) if (CPP_PEDANTIC (pfile) && (new_lineno <= 0 || new_lineno > 32767))
cpp_pedwarn (pfile, "line number out of range in `#line' command"); cpp_pedwarn (pfile, "line number out of range in `#line' command");
token = get_directive_token (pfile); token = get_directive_token (pfile);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment