This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: What does this mean?
- To: Gabriel dot Dos-Reis at cmla dot ens-cachan dot fr
- Subject: Re: What does this mean?
- From: Mike Stump <mrs at windriver dot com>
- Date: Fri, 6 Apr 2001 14:53:56 -0700 (PDT)
- Cc: gcc at gcc dot gnu dot org, nbecker at fred dot net
> To: Mike Stump <mrs@windriver.com>
> Cc: nbecker@fred.net, gcc@gcc.gnu.org
> From: Gabriel Dos Reis <Gabriel.Dos-Reis@cmla.ens-cachan.fr>
> Date: 06 Apr 2001 23:48:26 +0200
> | When dumping unary and binary operators, g++ has a habit of adding ()
> | to indicate bindings, even when the semantics are clear, and not
> | present in the source.
> Yes and that may be inadequate. Do you have a suggestion?
Well, one style of fix would be to create a string with the input and
then teach the lexer/parser to track substrings during parsing, so
that we can spit out the actual characters. Another one would be to
retain the syntax tree, and use it instead of the digested tree.
I think if we got rid of extra parens and the unary + altogether, that
would essentially fix this to the point where people won't complain
about it.