This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: linux says it is a bug
- From: <Paul_Koning at Dell dot com>
- To: <rth at redhat dot com>
- Cc: <richard dot guenther at gmail dot com>, <jwakely dot gcc at gmail dot com>, <hannes at stressinduktion dot org>, <manjian2006 at gmail dot com>, <gcc at gcc dot gnu dot org>
- Date: Tue, 4 Mar 2014 20:52:20 +0000
- Subject: Re: linux says it is a bug
- Authentication-results: sourceware.org; auth=none
- References: <20140304064026 dot GE8019 at ubuntu> <CAFiYyc3bVGgG=dmozPG5m4Vx_oJbR=rR=TsZfj+01dvXmWiJmw at mail dot gmail dot com> <20140304091703 dot GE17043 at order dot stressinduktion dot org> <CAH6eHdQ2mrDYm5s2FiGWdQnp7V_cV0JdwGA381SXzp3D79j+=Q at mail dot gmail dot com> <CAFiYyc2M9yXdVgA3wxoaXMTmaKOf7DjwHmour3THSEX1u6oBjA at mail dot gmail dot com> <531629D3 dot 1040402 at redhat dot com>
On Mar 4, 2014, at 2:30 PM, Richard Henderson <rth@redhat.com> wrote:
> On 03/04/2014 01:23 AM, Richard Biener wrote:
>> Doesn't sound like a bug but a feature. We can move
>> asm ("" : : : "memory") around freely up to the next/previous
>> instruction involving memory.
>
> Asms without outputs are automatically volatile. So there ought be zero change
> with and without the explicit use of the __volatile__ keyword.
That’s what the documentation says but it wasn’t actually true as of a couple of releases ago, as I recall.
paul