aboutsummaryrefslogtreecommitdiff
path: root/gcc/cpplib.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/cpplib.c')
-rw-r--r--gcc/cpplib.c2
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);