This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libgcc/84292] __sync_add_and_fetch returns the old value instead of the new value
- From: "andreast at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 27 Apr 2018 19:14:39 +0000
- Subject: [Bug libgcc/84292] __sync_add_and_fetch returns the old value instead of the new value
- Auto-submitted: auto-generated
- References: <bug-84292-4@http.gcc.gnu.org/bugzilla/>
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