diff options
author | Alexandre Oliva <oliva@lsd.ic.unicamp.br> | 2000-02-16 08:43:57 +0000 |
---|---|---|
committer | Alexandre Oliva <aoliva@gcc.gnu.org> | 2000-02-16 08:43:57 +0000 |
commit | 7113a160d8ab014a600deffb1db488172e9f2d38 (patch) | |
tree | a9f77f45d9e1c4268b9cea815918e10ed03568a3 /gcc/cpplib.c | |
parent | 4082292ada81523489887b54ec9795cdb1f19481 (diff) | |
download | gcc-7113a160d8ab014a600deffb1db488172e9f2d38.zip gcc-7113a160d8ab014a600deffb1db488172e9f2d38.tar.gz gcc-7113a160d8ab014a600deffb1db488172e9f2d38.tar.bz2 |
* cpplib.c (do_line): Pedwarn for #line > 32767.
From-SVN: r32006
Diffstat (limited to 'gcc/cpplib.c')
-rw-r--r-- | gcc/cpplib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cpplib.c b/gcc/cpplib.c index 844b89f..9ffa4a1 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); |