On 10/25/2011 06:45 PM, Andrew MacLeod wrote: > * builtins.c (expand_builtin_atomic_fetch_op): External calls for > 'op_fetch' builtins need to instead call 'fetch_op' externals and issue > correction code. > (expand_builtin): Provide proper builtin name for external call and > ignored flag to expand_builtin_atomic_fetch_op.
Looks ok. > ! resolved to an instriction sequence. */ "instruction" > ! gcc_assert (TREE_OPERAND (addr, 0) == fndecl); > ! TREE_OPERAND (addr, 0) = builtin_decl_explicit(ext_call); I do wonder if we ought not put the original back after the expand. r~