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/85029] [8 Regression] -fsanitize=undefined internal compiler error: in maybe_optimize_ubsan_ptr_ifn, at sanopt.c:493


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

--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Fri Mar 23 08:55:53 2018
New Revision: 258794

URL: https://gcc.gnu.org/viewcvs?rev=258794&root=gcc&view=rev
Log:
        PR sanitizer/85029
        * sanopt.c (maybe_optimize_ubsan_ptr_ifn): If DECL_REGISTER (base),
        just don't try to optimize it rather than assert it never happens.

        * g++.dg/ubsan/pr85029.C: New test.

Added:
    trunk/gcc/testsuite/g++.dg/ubsan/pr85029.C
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/sanopt.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]