re PR middle-end/52353 (-ftrapv -fnon-call-exceptions does not work)
authorRichard Guenther <rguenther@suse.de>
Mon, 5 Mar 2012 13:08:55 +0000 (13:08 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Mon, 5 Mar 2012 13:08:55 +0000 (13:08 +0000)
commitb55f62ccae9766c687dea6afc60f701a4490b0f1
tree42d3abf28617c05fdaa5e752dbc6b7ef735744cf
parent8dad8b259071a3b49d8ad0f08b7b0dba30b974c0
re PR middle-end/52353 (-ftrapv -fnon-call-exceptions does not work)

2012-03-05  Richard Guenther  <rguenther@suse.de>

PR middle-end/52353
* optabs.h (trapv_unoptab_p): New function.
(trapv_binoptab_p): Likewise.
* optabs.c (expand_binop): Use emit_libcall_block_1 with
a proper equiv_may_trap argument.
(expand_unop): Likewise.
(emit_libcall_block_1): Take extra argument whether the
instruction may trap.  Renamed from ...
(emit_libcall_block): ... this.  New wrapper.

From-SVN: r184932
gcc/ChangeLog
gcc/optabs.c
gcc/optabs.h