This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/52353] -ftrapv -fnon-call-exceptions does not work
- From: "rguenth at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 05 Mar 2012 13:08:59 +0000
- Subject: [Bug middle-end/52353] -ftrapv -fnon-call-exceptions does not work
- Auto-submitted: auto-generated
- References: <bug-52353-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52353
--- Comment #2 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-03-05 13:08:59 UTC ---
Author: rguenth
Date: Mon Mar 5 13:08:55 2012
New Revision: 184932
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=184932
Log:
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.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/optabs.c
trunk/gcc/optabs.h