Richard Henderson - Re: Call for compiler help/advice: atomic builtins for v3 (original) (raw)

This is the mail archive of the gcc@gcc.gnu.orgmailing 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]

On Sun, Nov 06, 2005 at 11:34:30AM +0100, Paolo Carlini wrote:

Thus my request: would it be possible to have available the builtins unconditionally, by way of a slow (locks) fallback replacing the real implementation when the actual target code doesn't allow for them?

I suppose that in some cases it would be possible to implement them in libgcc. Certainly we provided for that possibility by expanding to external calls.

Not all targets are going to be able to implement the builtins, even with locks. It is imperitive that the target have an atomic store operation, so that other read-only references to the variable see either the old or new value, but not a mix.

r~


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