[cxx-mem-model] Change library call for __atomic_op_fetch routines
Richard Henderson
rth@redhat.com
Wed Oct 26 17:59:00 GMT 2011
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~
More information about the Gcc-patches
mailing list