https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68046
--- Comment #5 from Richard Biener <rguenth at gcc dot gnu.org> --- Author: rguenth Date: Thu Oct 22 11:44:11 2015 New Revision: 229170 URL: https://gcc.gnu.org/viewcvs?rev=229170&root=gcc&view=rev Log: 2015-10-22 Richard Biener <rguent...@suse.de> PR middle-end/68046 PR middle-end/61893 * optabs.c (emit_libcall_block_1): Allow a NULL_RTX equiv. (expand_binop): For -ftrapv optabs do not record an REG_EQUAL note. (expand_unop): Likewise. * gcc.dg/torture/ftrapv-2.c: New testcase. Added: trunk/gcc/testsuite/gcc.dg/torture/ftrapv-2.c Modified: trunk/gcc/ChangeLog trunk/gcc/optabs.c trunk/gcc/testsuite/ChangeLog