This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Don't constant fold 1.0/0.0 at compile-time
- From: Segher Boessenkool <segher at koffie dot nl>
- To: Roger Sayle <roger at eyesopen dot com>
- Cc: gcc-patches at gcc dot gnu dot org, Richard Henderson <rth at redhat dot com>
- Date: Fri, 04 Jul 2003 06:04:55 +0200
- Subject: Re: [PATCH] Don't constant fold 1.0/0.0 at compile-time
- References: <Pine.LNX.4.44.0307010122560.27458-100000@www.eyesopen.com>
Roger Sayle wrote:
> Could one of the language lawyers post their opinions on "x = 1.0/0.0"?
If x has static storage duration, no exceptions are raised.
See C99, F.7.4.
Segher