re PR preprocessor/28079 (#line range not verified without -pedantic)
authorManuel López-Ibáñez <manu@gcc.gnu.org>
Tue, 22 Jul 2008 09:45:58 +0000 (09:45 +0000)
committerManuel López-Ibáñez <manu@gcc.gnu.org>
Tue, 22 Jul 2008 09:45:58 +0000 (09:45 +0000)
commit3b8f20a10d59773f19a43affa79dd7db7846db11
tree17d49712a4145447c738fd8de9102fd6bb8c8f50
parent92d3046118455bc90fd7daaf349b2dffe849dddd
re PR preprocessor/28079 (#line range not verified without -pedantic)

2008-07-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>

PR 28079
libcpp/
* directives.c (strtolinenum): Handle overflow.
(do_line): Give a warning if line number overflowed.
(do_linemarker): Update call to strtolinenum.

gcc/testsuite/
* gcc.dg/cpp/line6.c: New.

From-SVN: r138049
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/cpp/line6.c [new file with mode: 0644]
libcpp/ChangeLog
libcpp/directives.c