]> git.ipfire.org Git - thirdparty/gcc.git/commit - libcpp/ChangeLog
PR preprocessor/69985: fix ICE with long lines in -Wformat
authorDavid Malcolm <dmalcolm@redhat.com>
Tue, 1 Mar 2016 01:02:49 +0000 (01:02 +0000)
committerDavid Malcolm <dmalcolm@gcc.gnu.org>
Tue, 1 Mar 2016 01:02:49 +0000 (01:02 +0000)
commit7168133a372e15373f3687d9b5e01ce24a954de9
tree24b174cddca2c8a46a928dffe42c5c6b0c8718a4
parentf3c7a94580c1ca9d78bc246be19750ebd047124f
PR preprocessor/69985: fix ICE with long lines in -Wformat

gcc/testsuite/ChangeLog:
PR preprocessor/69985
* gcc.dg/cpp/pr69985.c: New test case.

libcpp/ChangeLog:
PR preprocessor/69985
(linemap_position_for_loc_and_offset): Rename param from "offset"
to "column_offset".  Right-shift the column_offset by m_range_bits
of the pertinent ordinary map whenever offsetting a
source_location.  For clarity, offset the column by the column
offset, rather than the other way around.

From-SVN: r233836
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/cpp/pr69985.c [new file with mode: 0644]
libcpp/ChangeLog
libcpp/line-map.c