This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: How to not fold constants?
- To: toon@moene.indiv.nluug.nl (Toon Moene)
- Subject: Re: How to not fold constants?
- From: Joern Rennecke <amylaar@cygnus.co.uk>
- Date: Tue, 10 Aug 1999 21:43:30 +0100 (BST)
- Cc: moshier@mediaone.net, gcc@gcc.gnu.org
> I think an easier (and more obvious IMHO) solution is to have the C
> frontend "Do The Right Thing", i.e. call build(fold(...)) in case of a
> static initializer and build(...) otherwise [or is there a snag in there
> that I'm overlooking ?]
Yes. There might be integer expressions inside that we want to fold.
We also want to fold floating point if this can be done without an
inexact operation or generating NaNs.