https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88137

--- Comment #6 from Janne Blomqvist <jb at gcc dot gnu.org> ---
Author: jb
Date: Sun Dec  2 15:12:44 2018
New Revision: 266724

URL: https://gcc.gnu.org/viewcvs?rev=266724&root=gcc&view=rev
Log:
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  <j...@gcc.gnu.org>

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

Modified:
    trunk/libgfortran/ChangeLog
    trunk/libgfortran/runtime/backtrace.c

Reply via email to