diff options
| author | aoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-02-16 08:43:57 +0000 |
|---|---|---|
| committer | aoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-02-16 08:43:57 +0000 |
| commit | f9aaf27e58f3e320e5c736405b042f1011b4d226 (patch) | |
| tree | a9f77f45d9e1c4268b9cea815918e10ed03568a3 /gcc/cpplib.c | |
| parent | 4beaa3fdd3a25749e8032c3278dd044a57cd728b (diff) | |
| download | ppe42-gcc-f9aaf27e58f3e320e5c736405b042f1011b4d226.tar.gz ppe42-gcc-f9aaf27e58f3e320e5c736405b042f1011b4d226.zip | |
* cpplib.c (do_line): Pedwarn for #line > 32767.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@32006 138bc75d-0d04-0410-961f-82ee72b054a4
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 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); |

