This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
PATCH to fold in convert_ieee_real_to_integer
- From: Andrew Haley <aph at cambridge dot redhat dot com>
- To: Per Bothner <per at bothner dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Fri, 6 Sep 2002 20:19:43 +0100 (BST)
- Subject: PATCH to fold in convert_ieee_real_to_integer
- References: <3D78FD49.2000809@bothner.com>
Per Bothner writes:
> While looking into how constant fields propagate, I found that
> convert_ieee_real_to_integer doesn't constant-fold. I think it
> should. Andrew, I believe this is your code, so please take a
> look. You might also want to re-format. Normally, we do fold
> fold (build (...)) rather than build (...., fold (...)), so I
> should move the fold calls (pysically, not logically).
I think this was deliberate, because at the time fold() wasn't doing
the Right Thing with respect to Java. However, this was a very long
time ago and it's perfectly possible that my memory is inaccurate.
> (I haven't run the test-suite yet, because libstc++ doesn't build
> for me. I'll do that before a check-in.)
I thought I wrote a testcase for this, but I can't find it. I can't
imagine that I wrote all this stuff without testing it!
Andrew.