From: Alexandre Oliva Date: Wed, 16 Feb 2000 08:43:57 +0000 (+0000) Subject: * cpplib.c (do_line): Pedwarn for #line > 32767. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7113a160d8ab014a600deffb1db488172e9f2d38;p=gcc.git * cpplib.c (do_line): Pedwarn for #line > 32767. From-SVN: r32006 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 67e454bed51..7db972f075c 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,7 @@ 2000-02-16 Alexandre Oliva + * cpplib.c (do_line): Pedwarn for #line > 32767. + * c-lex.c (readescape): Warn about '\x', but do not reject it. 2000-02-15 Jonathan Larmour diff --git a/gcc/cpplib.c b/gcc/cpplib.c index 844b89fda65..9ffa4a1cedf 100644 --- a/gcc/cpplib.c +++ b/gcc/cpplib.c @@ -1346,7 +1346,7 @@ do_line (pfile, keyword) } 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"); token = get_directive_token (pfile);