PR libgcc/71744
commit69ea99083f1e327672b01b223939f3b93fd20eb0
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 16 Sep 2016 19:17:47 +0000 (16 19:17 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 16 Sep 2016 19:17:47 +0000 (16 19:17 +0000)
tree66a335c06c85833590a8c8c17b8332a42d78e963
parent29ff19b82569254ede5eb8c6134863d2e059fca4
PR libgcc/71744
* unwind-dw2-fde.c (ATOMIC_FDE_FAST_PATH): Define if __register_frame*
is not the primary registry and atomics are available.
(any_objects_registered): New variable.
(__register_frame_info_bases, __register_frame_info_table_bases):
Atomically store 1 to any_objects_registered after registering first
unwind info.
(_Unwind_Find_FDE): Return early if any_objects_registered is 0.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@240193 138bc75d-0d04-0410-961f-82ee72b054a4
libgcc/ChangeLog
libgcc/unwind-dw2-fde.c