re PR libgcc/84292 (__sync_add_and_fetch returns the old value instead of the new...
authorAndreas Tobler <andreast@gcc.gnu.org>
Fri, 27 Apr 2018 19:14:05 +0000 (21:14 +0200)
committerAndreas Tobler <andreast@gcc.gnu.org>
Fri, 27 Apr 2018 19:14:05 +0000 (21:14 +0200)
commit8f479d7a35a79603defb5932b46114e73556c9a9
tree827825a0344d9719e98120f1c1acdfadf12ee6aa
parent66bd30863fe5673f902fa64a1af0a47f4911fdd2
re PR libgcc/84292 (__sync_add_and_fetch returns the old value instead of the new value)

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.

Co-Authored-By: Maryse Levavasseur <maryse.levavasseur@stormshield.eu>
From-SVN: r259722
libgcc/ChangeLog
libgcc/config/arm/freebsd-atomic.c