This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [cxx-mem-model] Atomic C++ header file changes
- From: Richard Henderson <rth at redhat dot com>
- To: Andrew MacLeod <amacleod at redhat dot com>
- Cc: gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Thu, 18 Aug 2011 15:33:45 -0700
- Subject: Re: [cxx-mem-model] Atomic C++ header file changes
- References: <4E4BE0BE.8000901@redhat.com>
On 08/17/2011 08:39 AM, Andrew MacLeod wrote:
> ! return __sync_mem_load (const_cast <__int_type *>(&_M_i), __m);
This suggests the builtin is incorrectly defined.
It ought to be const itself.
r~