[prev in list] [next in list] [prev in thread] [next in thread]
List: gcc-patches
Subject: Re: PR 21438 : Warning about division by zero depends on lexical form
From: Mark Mitchell <mark () codesourcery ! com>
Date: 2007-01-29 21:16:26
Message-ID: 45BE642A.2020604 () codesourcery ! com
[Download RAW message or body]
Manuel López-Ibáñez wrote:
> 2007-01-14 Andrew Pinski <pinskia@gmail.com>
> Manuel Lopez-Ibanez <manu@gcc.gnu.org>
>
> PR c/21438
> * gcc/c-typeck.c (build_binary_op): Don't give division by zero
> warning if integer zero is promoted to REAL_TYPE.
>
> testsuite:
> 2007-01-14 Andrew Pinski <pinskia@gmail.com>
> Manuel Lopez-Ibanez <manu@gcc.gnu.org>
>
> PR c/21438
> * gcc.dg/Wdiv-by-zero.c: New.
I'll let a C maintainer review these bits.
> The C++ front-end, on the contrary, warns always. Is this an
inconsistency?
Yes, I think the two front ends should behave the same in this respect.
Thanks,
--
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic