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] |
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.
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] |