This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [RFA] Close PR 150: division by zero
- To: Neil Booth <neil at daikokuya dot demon dot co dot uk>
- Subject: Re: [RFA] Close PR 150: division by zero
- From: Richard Henderson <rth at redhat dot com>
- Date: Sun, 21 Oct 2001 17:35:37 -0700
- Cc: gcc-patches at gcc dot gnu dot org
- References: <20011021212845.A558@daikokuya.demon.co.uk>
On Sun, Oct 21, 2001 at 09:28:45PM +0100, Neil Booth wrote:
> This simple patch + testcase closes PR 150, which is a request to warn
> about compile-time division by zero, which can appear in non-obvious
> ways from e.g. macros.
I don't think we should warn for FP div by zero, as that's
the most convenient way to do
static double inf = 1.0 / 0.0;
static double nan = 0.0 / 0.0;
r~