> From: Hans-Peter Nilsson
> Date: Wed, 15 Aug 2012 02:20:37 +0200
> I looked around and it seems only cris{v32,}-axis-linux-gnu is
> affected. Still, besides that target, for a 4.7/r189762 import
> and c/c++ testing, boot+regtest in progress for x86_64-linux and
> cross-test for cris-axis-elf.
If a target implements (some) atomics by only setting
sync_compare_and_swap_optab libfuncs (see
cris.c:cris_init_libfuncs), a code-path less travelled is used.
There's a bug there, causing sync/atomic operators to be
implemented with the reverse operator, e.g. minus instead of
plus.
This should ha