This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: basic asm and memory clobbers - Proposed solution


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]