PR preprocessor/69126: avoid comparing ad-hoc and non-ad-hoc locations
commit52609ec38167b4d90e27cad947ad2f81438f9d66
authordmalcolm <dmalcolm@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 23 Feb 2016 17:44:28 +0000 (23 17:44 +0000)
committerdmalcolm <dmalcolm@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 23 Feb 2016 17:44:28 +0000 (23 17:44 +0000)
tree6c0de6232fb3db3c73408db9d8aeaa7ce4297065
parentd5bf2cc892f85286f6b12b34aa363d0b4b1944e8
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@233638 138bc75d-0d04-0410-961f-82ee72b054a4
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