basic asm and memory clobbers - Proposed solution
David Wohlferd
dw@LimeGreenSocks.com
Thu Dec 17 01:16:00 GMT 2015
On 12/15/2015 12:42 PM, Paul_Koning@Dell.com wrote:
> In the codebase for the product I work on, I see about 200 of them. Many of those are the likes of asm("sync") for MIPS, which definitely wants to be treated as if it were asm ("sync" : : : "memory").
That's right, I meant to ask you about this last time you mentioned this.
Now that you are aware that this is a problem, what do you intend to do
about it? Jeff is saying that this may not be fixed until at least v7,
so waiting for a compiler fix may take a while.
Will you be updating your source?
Are you just finding these with grep, or have you tried the
-Wonly-top-basic-asm patch?
> That's not counting the hundreds I see in gdb/stubs -- those are "outside a function" flavor.
Fortunately, these aren't a problem for memory or register clobbers.
dw
More information about the Gcc
mailing list