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

--- Comment #9 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-10 branch has been updated by Richard Biener
<rgue...@gcc.gnu.org>:

https://gcc.gnu.org/g:e41fa23451c965516a37282268231933fd948845

commit r10-10765-ge41fa23451c965516a37282268231933fd948845
Author: Richard Biener <rguent...@suse.de>
Date:   Fri Apr 29 08:45:48 2022 +0200

    tree-optimization/105431 - another overflow in powi handling

    This avoids undefined signed overflow when calling powi_as_mults_1.

    2022-04-29  Richard Biener  <rguent...@suse.de>

            PR tree-optimization/105431
            * tree-ssa-math-opts.c (powi_as_mults_1): Make n unsigned.
            (powi_as_mults): Use absu_hwi.
            (gimple_expand_builtin_powi): Remove now pointless n != -n
            check.

    (cherry picked from commit 44b09adb9bad99dd7e3017c5ecefed7f7c9a1590)
  • [Bug tree-optimization/105431] ... cvs-commit at gcc dot gnu.org via Gcc-bugs

Reply via email to