This is the mail archive of the gcc-patches@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]

Re: [libcpp/C PATCH] Fix two ICEs with location offsets (PR c/66415)


On Thu, 4 Jun 2015, Marek Polacek wrote:

> This patch fixes two issues in locations with offsets that these two
> new tests revealed:
> 1) we should check the return value of location_get_source_line;
> 2) linemap_position_for_loc_and_offset can be confused if a location
>    is in a different map than it expects it to be.  Proper fix is unknown
>    yet, so removing two asserts and just giving up is best for now.
>    Manuel said he'd take a look at this later.
> 
> Bootstrapped/regtested on x86_64-linux, ok for trunk?

OK in the absence of objections from Dodji as line map maintainer within 
48 hours.

-- 
Joseph S. Myers
joseph@codesourcery.com


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