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: [cxx-mem-model] Change library call for __atomic_op_fetch routines


On 10/26/2011 01:19 PM, Richard Henderson wrote:

! resolved to an instriction sequence. */
"instruction"
no no, its a mashup of "restricted instruction".
ok, maybe not.
!   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.
hum. I suppose that wouldn't hurt. I don't think it should make any difference since Im not modifying whats in the table, but I can give it a shot. If it bootstraps, which I presume it will, I'll check it in with the original decl replaced.

Andrew


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