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: [i386, patch, RFC] HLE support in GCC


> I actually think it is a bad idea to imply any memory model
> from the HLE bits.  If anything, we should warn for memmodel
> + hle bit combinations that are unlikely to DTRT.

This would be a warning with _RELAXED/_CONSUME, but there may be very 
obscure situations where someone really wants that (but then there
would be no way to get rid of the warning). So if you do that you would
need another flag to disable the warning.

The "default to ACQUIRE/RELEASE but allow override with no warning" model seems
more user friendly to me.

> Let the developers really use the model they want.

You assume they really want one :-)

-Andi

-- 
ak@linux.intel.com -- Speaking for myself only.


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