Re: [PATCH] Let target get_memmodel know about stores/barriers

2013-01-14 Thread Uros Bizjak
On Mon, Jan 14, 2013 at 4:38 PM, Andi Kleen wrote: > For HLE stores are only valid with __ATOMIC_HLE_RELEASE. The middle end > didn't know this. This adds a new parameter to the get_memmodel target > hook to distingush stores and give an warning for acquire stores. > > I also did a similar check

[PATCH] Let target get_memmodel know about stores/barriers

2013-01-14 Thread Andi Kleen
From: Andi Kleen For HLE stores are only valid with __ATOMIC_HLE_RELEASE. The middle end didn't know this. This adds a new parameter to the get_memmodel target hook to distingush stores and give an warning for acquire stores. I also did a similar check for the barriers where HLE is not useful at