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

Re: [RFA:] fix PR54261, reverse operator emitted for compare_and_swap-libfunc targets


> From: Hans-Peter Nilsson <hp@axis.com>
> 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.  The test-case is spot-checked to
> pass for a target not implementing any atomics whatsoever,
> i.e. mmix-knuth-mmixware.

(clean test-results)

> Ok for trunk, assuming clean test-results?  Maybe 4.7 too, it
> being somewhat trivial?
> 
> gcc:
> 	PR middle-end/54261
> 	* optabs.c (expand_atomic_fetch_op): Save and restore code when
> 	retrying after failed attempt.
> 
> gcc/testsuite:
> 	PR middle-end/54261
> 	* gcc.dg/torture/pr54261-1.c: New test.

Approved on IRC by dnovillo, committed.  A backport to 4.7 is
trivial but AFAIK not affecting any FSF target so I'll drop
that; affected private ports have to have maintainers skilled
enough to find this post.

brgds, H-P


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