basic asm and memory clobbers - Proposed solution
Joseph Myers
joseph@codesourcery.com
Tue Dec 1 23:26:00 GMT 2015
On Tue, 1 Dec 2015, David Wohlferd wrote:
> Saying it's dead in the docs is the first step to making it dead in the code.
> This patch just implements an optional warning (unless #3,4 crank it up to a
> default warning), but the intent is that eventually (v7? v8?) this turns into
> a fatal error.
I am strongly skeptical of this whole direction. As I noted, the basic
asm syntax is part of the standard C++ syntax. We should define it to do
something sensible consistent with existing practice. (That does not
exclude a non-default warning, not part of -Wall or -Wextra, for people
who wish to avoid basic asm in functions.)
--
Joseph S. Myers
joseph@codesourcery.com
More information about the Gcc
mailing list