This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH][RFC] Fix PR30364, reassociation not allowed for undefined overflow
- From: Ian Lance Taylor <iant at google dot com>
- To: Richard Guenther <rguenther at suse dot de>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: 22 Feb 2007 07:56:52 -0800
- Subject: Re: [PATCH][RFC] Fix PR30364, reassociation not allowed for undefined overflow
- References: <Pine.LNX.4.64.0702221058390.18923@zhemvz.fhfr.qr>
Richard Guenther <rguenther@suse.de> writes:
> ! if ((FLOAT_TYPE_P (type) && flag_unsafe_math_optimizations)
> ! || (INTEGRAL_TYPE_P (type) && TYPE_OVERFLOW_WRAPS (type)))
Wow, yuck. I guess it has to be done, though.
It would be cool if we could later use VRP to do the association when
permitted.
Ian