This is the mail archive of the
mailing list for the GCC project.
Re: basic asm and memory clobbers
- From: Jeff Law <law at redhat dot com>
- To: Segher Boessenkool <segher at kernel dot crashing dot org>
- Cc: David Wohlferd <dw at LimeGreenSocks dot com>, "gcc at gcc dot gnu dot org" <gcc at gcc dot gnu dot org>, rth at gcc dot gnu dot org, pinskia at gcc dot gnu dot org, Sandra Loosemore <sandra at codesourcery dot com>
- Date: Wed, 18 Nov 2015 15:08:00 -0700
- Subject: Re: basic asm and memory clobbers
- Authentication-results: sourceware.org; auth=none
- References: <563FE459 dot 3000003 at LimeGreenSocks dot com> <20151109093229 dot GA5260 at gate dot crashing dot org> <56493010 dot 9070707 at LimeGreenSocks dot com> <564A4AA5 dot 1080706 at redhat dot com> <564AC155 dot 4040601 at LimeGreenSocks dot com> <564B9CB1 dot 1060001 at redhat dot com> <20151118012803 dot GA20201 at gate dot crashing dot org>
On 11/17/2015 06:28 PM, Segher Boessenkool wrote:
You'd have to dig into the various optimizers -- I know that it has a
memory use in DSE, but I haven't audited the optimizers thoroughly. In
fact, the whole point behind the PR in question is there's at least one
optimizer that is missing that check.
_Does_ basic asm as currently implemented have a memory clobber? If not,
it seems we can just remove basic asm completely and everything would
still work the same!