This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: [RFA] Close PR 150: division by zero


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~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]