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]
Other format: [Raw text]

Re: [PING^3] PR 21438 : Warning about division by zero depends on lexical form


On 02/03/07, Mark Mitchell <mark@codesourcery.com> wrote:

But, the first thing to do is to make the C++ front end behave like the C front end. Then, we can decide what, if anything to do next.


Done. Bootstrapped and regression tested. Funny enough, no C++ testcase needs adjustment.

:ADDPATCH C/C++:

2007-03-12 Manuel Lopez-Ibanez <manu@gcc.gnu.org>

 PR 21438
 * c-common.h (warn_for_div_by_zero): Declare.
 * c-common.c (warn_for_div_by_zero): Define.
 * c-typeck.c (build_binary_op): Call warn_for_div_zero instead of warning.

cp/
 * typeck.c (build_binary_op): Call warn_for_div_zero instead of warning.

Attachment: wdivbyzero-try3.diff
Description: Text document


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