This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: compiler tweak offered
On Thu, Aug 29, 2002 at 08:39:26PM -0700, Richard Henderson wrote:
> On Sun, Aug 25, 2002 at 08:31:19AM +0200, der Mouse wrote:
>
> I don't know about the other maintainers, but personally I
> don't feel this extension adds enough expressiveness to
> warrent the maintanence hassle.
I largely agree. I do like the idea on an aesthetic level, but I
don't see a hugely compelling case for it.
> > Unfortunately it does cause a reinterpretation of certain very unusual
> > legal C code, namely, any do-loop whose body is a non-brace-bracketed
> > statement beginning with a string literal...
>
> In addition, this is a major strike against your proposal.
It would be better to use real labels:
outer: for (elt=root; elt; elt=elt->link)
{ while (...)
{ ...
switch (...)
{ ....
if (...) continue outer;
As long as 'outer' is still a legitimate target of a goto statement,
that can't cause reinterpretation of any existing program.
zw