This is the mail archive of the gcc-bugs@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]

[Bug middle-end/61893] Constant folding inhibits trapping with -ftrapv


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61893

--- Comment #4 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  <rguenther@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


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