Re: [Patch] The comparison in a compare exchange should not take place in VOIDmode

2015-06-04 Thread Richard Henderson
On 06/04/2015 07:19 AM, James Greenhalgh wrote: > 2015-06-04 James Greenhalgh > > * builtins.c (expand_builtin_atomic_compare_exchange): Call > emit_cmp_and_jump_insns with the mode of target. Ok. r~

[Patch] The comparison in a compare exchange should not take place in VOIDmode

2015-06-04 Thread James Greenhalgh
Hi, I was playing with some changes to costs for some immediate values in AArch64, and ended up tripping an ICE in some builtin expansion code. The ICE looked like this (some pruning of the boring bits...) format.c: In function '_gfortran_caf_atomic_cas': format.c:13:3: internal compiler error: