Re: [PATCH 1/2] libcpp: Avoid unnecessary ad-hoc uses for large source files

2015-12-21 Thread Jeff Law
On 12/18/2015 01:21 PM, David Malcolm wrote: When debugging PR c++/68819 I noticed an inefficiency during the handling of locations > LINE_MAP_MAX_LOCATION_WITH_COLS. When combining ranges for locations with start == caret == finish (with a NULL data ptr) get_combined_adhoc_loc was always buil

[PATCH 1/2] libcpp: Avoid unnecessary ad-hoc uses for large source files

2015-12-18 Thread David Malcolm
When debugging PR c++/68819 I noticed an inefficiency during the handling of locations > LINE_MAP_MAX_LOCATION_WITH_COLS. When combining ranges for locations with start == caret == finish (with a NULL data ptr) get_combined_adhoc_loc was always building an ad-hoc entry rather than simply returnin