]> git.ipfire.org Git - thirdparty/gcc.git/commit
PR preprocessor/69126: avoid comparing ad-hoc and non-ad-hoc locations
authorDavid Malcolm <dmalcolm@redhat.com>
Tue, 23 Feb 2016 17:44:28 +0000 (17:44 +0000)
committerDavid Malcolm <dmalcolm@gcc.gnu.org>
Tue, 23 Feb 2016 17:44:28 +0000 (17:44 +0000)
commit196440f844be32600507b6a026bca318675d5cd0
tree6c0de6232fb3db3c73408db9d8aeaa7ce4297065
parent1d3121af3ad1eb7eb240b0b949d4b57415497463
PR preprocessor/69126: avoid comparing ad-hoc and non-ad-hoc locations

gcc/testsuite/ChangeLog:
PR preprocessor/69126
PR preprocessor/69543
* c-c++-common/pr69126-2-long.c: New test.
* c-c++-common/pr69126-2-short.c: New test.
* c-c++-common/pr69543-1.c: Remove xfail.

libcpp/ChangeLog:
PR preprocessor/69126
PR preprocessor/69543
* line-map.c (linemap_compare_locations): At the function top,
replace inlined bodies of get_location_from_adhoc_loc with calls
to get_location_from_adhoc_loc.  Add a pair of calls to
get_location_from_adhoc_loc at the bottom of the function, to
avoid meaningless comparisons of ad-hoc and non-ad-hoc locations.

From-SVN: r233638
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/pr69126-2-long.c [new file with mode: 0644]
gcc/testsuite/c-c++-common/pr69126-2-short.c [new file with mode: 0644]
gcc/testsuite/c-c++-common/pr69543-1.c
libcpp/ChangeLog
libcpp/line-map.c