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]

Re: What is acceptable for -ffast-math? (Was: associative law in combine)


On Jul 30, 2001, Neil Booth <neil@daikokuya.demon.co.uk> wrote:

> Alexandre Oliva wrote:-
>> But we could use new tokens, say (( )) and ((( ))) to mark expressions
>> the preprocessor and the compiler shouldn't muck up with.

> You can't be serious?  Any non-trivial CPP expansion tends to have
> multiple redundant parentheses all over the place.

I am serious.  The preprocessor should protect individual parentheses
from becoming consecutive by introducing whitespace.  We should tell:

((foo))

from

#define a (foo)
#define b (a)
b

so that the latter expands to say:

( (foo) )

This is something the preprocessor already does in certain cases, to
prevent certain sequences of characters from becoming different
tokens.  I'm just suggesting that we do this for parentheses too, so
that we can recognize sequences of parentheses explicitly introduced
by the user, as optimization barriers.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me


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