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

[Bug libgcc/84292] __sync_add_and_fetch returns the old value instead of the new value


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

--- Comment #5 from Andreas Tobler <andreast at gcc dot gnu.org> ---
Author: andreast
Date: Fri Apr 27 19:14:05 2018
New Revision: 259722

URL: https://gcc.gnu.org/viewcvs?rev=259722&root=gcc&view=rev
Log:
2018-04-27  Andreas Tobler  <andreast@gcc.gnu.org>
            Maryse Levavasseur <maryse.levavasseur@stormshield.eu>

        PR libgcc/84292
        * config/arm/freebsd-atomic.c (SYNC_OP_AND_FETCH_N): Fix the
        op_and_fetch to return the right result.

Modified:
    trunk/libgcc/ChangeLog
    trunk/libgcc/config/arm/freebsd-atomic.c

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