This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: basic asm and memory clobbers - Proposed solution
- From: Joseph Myers <joseph at codesourcery dot com>
- To: David Wohlferd <dw at LimeGreenSocks dot com>
- Cc: Richard Earnshaw <Richard dot Earnshaw at foss dot arm dot com>, "gcc at gcc dot gnu dot org" <gcc at gcc dot gnu dot org>, <rth at redhat dot com>, <Paul_Koning at Dell dot com>, <jakub at redhat dot com>, <rth at gcc dot gnu dot org>, <pinskia at gcc dot gnu dot org>, Jeff Law <law at redhat dot com>, Segher Boessenkool <segher at kernel dot crashing dot org>, <aph at redhat dot com>, Ian Lance Taylor <iant at google dot com>, Sandra Loosemore <sandra at codesourcery dot com>, Hans-Peter Nilsson <hp at bitrange dot com>, <bernd dot edlinger at hotmail dot de>
- Date: Tue, 1 Dec 2015 23:25:52 +0000
- Subject: Re: basic asm and memory clobbers - Proposed solution
- Authentication-results: sourceware.org; auth=none
- References: <56552209 dot 1020306 at LimeGreenSocks dot com> <56592801 dot 9010606 at LimeGreenSocks dot com> <565DC5F4 dot 6080804 at foss dot arm dot com> <565E1E37 dot 9080609 at LimeGreenSocks dot com>
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