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 sanitizer/80875] UBSAN: compile time crash in fold_binary_loc at fold-const.c:9817


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

--- Comment #2 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
commit 0123775a88c6cf1035e4633fde7823a3e9889809
Author: rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Date:   Wed Oct 28 13:41:25 2015 +0000

    2015-10-28  Richard Biener  <rguenther@suse.de>

            * fold-const.c (negate_expr_p): Adjust the division case to
            properly avoid introducing undefined overflow.
            (fold_negate_expr): Likewise.


    git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@229484
138bc75d-0d04-0410-961f-82ee72b054a4

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