This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug preprocessor/28079] #line range not verified without -pedantic
- From: "manu at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 22 Jul 2008 09:46:43 -0000
- Subject: [Bug preprocessor/28079] #line range not verified without -pedantic
- References: <bug-28079-6809@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #6 from manu at gcc dot gnu dot org 2008-07-22 09:46 -------
Subject: Bug 28079
Author: manu
Date: Tue Jul 22 09:45:58 2008
New Revision: 138049
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=138049
Log:
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.
Added:
trunk/gcc/testsuite/gcc.dg/cpp/line6.c
Modified:
trunk/gcc/testsuite/ChangeLog
trunk/libcpp/ChangeLog
trunk/libcpp/directives.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28079