Patch to fix optabs.c when SWITCHABLE_TARGETS is defined.

Richard Henderson rth@redhat.com
Mon Nov 7 18:09:00 GMT 2011


On 11/07/2011 07:49 AM, Andrew MacLeod wrote:
> 2011-11-07  Andrew MacLeod  <amacleod@redhat.com>
> 
> 	* optabs.c (get_atomic_op_for_code): Fill in optab table at runtime so
> 	SWITCHABLE_TARGET can change the valuies during compilation.
> 	(expand_atomic_fetch_op): handle parameter changes ripples for 
> 	get_atomic_op_for_code call.

Ok, except,

>       case XOR:
> !       op->mem_fetch_before = atomic_fetch_xor_optab;
> !       op->mem_fetch_after = atomic_xor_fetch_optab;
> !       op->mem_no_result = atomic_xor_optab;
> !       op->fetch_before = sync_old_xor_optab;
> !       op->fetch_after = sync_new_xor_optab;
> !       op->no_result = sync_xor_optab;
> !       op->reverse_code = UNKNOWN;

you undid the XOR reverse is XOR fix.


r~



More information about the Gcc-patches mailing list