]> git.ipfire.org Git - thirdparty/gcc.git/commit
lto: Remove stream_input_location_now
authorJakub Jelinek <jakub@redhat.com>
Fri, 4 Sep 2020 09:55:13 +0000 (11:55 +0200)
committerJakub Jelinek <jakub@redhat.com>
Fri, 11 Sep 2020 07:46:31 +0000 (09:46 +0200)
commit271bdeba2fabc3dfa9c06b9ea42743b750040ac2
treea557d26d8e133da39b11d2804e3853b85f69eba4
parent89e762d9599124e468e5902ae733d2bc18c8129d
lto: Remove stream_input_location_now

As discussed yesterday, stream_input_location_now has been used in 3
remaining places.  For ERT_MUST_NOT_THROW, I believe the failure_loc
location is stable at least until the apply_cache after the bbs are all
read, and the locations do not include BLOCK, so we can use normal
stream_input_location, and the two input_struct_function_base also
shouldn't include BLOCK and are stable at least until that same apply_cache
after reading all bbs, so again we can use the location cache.

2020-09-04  Jakub Jelinek  <jakub@redhat.com>

* lto-streamer.h (stream_input_location_now): Remove declaration.
* lto-streamer-in.c (stream_input_location_now): Remove.
(input_eh_region, input_struct_function_base): Use
stream_input_location instead of stream_input_location_now.

(cherry picked from commit b898878032a5bbba0d1a981db6399664181531e9)
gcc/lto-streamer-in.c
gcc/lto-streamer.h