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

--- Comment #4 from Martin Liška <marxin at gcc dot gnu.org> ---
Author: marxin
Date: Wed Nov  7 09:33:22 2018
New Revision: 265869

URL: https://gcc.gnu.org/viewcvs?rev=265869&root=gcc&view=rev
Log:
Fix UBSAN in postreload-gcse.c (PR rtl-optimization/87868).

2018-11-07  Martin Liska  <mli...@suse.cz>

        PR rtl-optimization/87868
        * postreload-gcse.c (eliminate_partially_redundant_load): Set
        threshold to max_count if we would overflow.
        * profile-count.h: Make max_count a public constant.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/postreload-gcse.c
    trunk/gcc/profile-count.h

Reply via email to