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/36674] #include location is offset by one row in errors from preprocessed files



------- Comment #2 from manu at gcc dot gnu dot org  2009-05-13 23:18 -------
Subject: Bug 36674

Author: manu
Date: Wed May 13 23:17:55 2009
New Revision: 147504

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=147504
Log:
2009-05-14  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>

        PR cpp/36674
libcpp/
        * directives (do_linemarker): Compensate for the increment in
        location that occurs when we reach the end of line.
        * files (_cpp_stack_include): Mention _cpp_find_file in the
        comment.
testsuite/
        * gcc.dg/cpp/pr36674.i: New.

Added:
    trunk/gcc/testsuite/gcc.dg/cpp/pr36674.i
Modified:
    trunk/gcc/testsuite/ChangeLog
    trunk/libcpp/ChangeLog
    trunk/libcpp/directives.c
    trunk/libcpp/files.c


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36674


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