This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug preprocessor/28079] #line range not verified without -pedantic



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]