Use atomic load/store to access static backtrace state pointer
authorJanne Blomqvist <jb@gcc.gnu.org>
Sun, 2 Dec 2018 15:12:44 +0000 (17:12 +0200)
committerJanne Blomqvist <jb@gcc.gnu.org>
Sun, 2 Dec 2018 15:12:44 +0000 (17:12 +0200)
commitdf996c3fd2115d8ed8f44072f00728fbe5dc2d6b
tree5b41da21c104545478a484a60a3e2e5c11ef379c
parent4a82df9a389506e2a34aa22d9a751c2be834e238
Use atomic load/store to access static backtrace state pointer

As the static backtrace state pointer can be accessed from multiple
threads, use atomics to access it.

Regtested on x86_64-pc-linux-gnu.

libgfortran/ChangeLog:

2018-12-02  Janne Blomqvist  <jb@gcc.gnu.org>

PR libfortran/88137
* runtime/backtrace.c (show_backtrace): Use atomic load/store to
access the static lbstate pointer.

From-SVN: r266724
libgfortran/ChangeLog
libgfortran/runtime/backtrace.c