https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105431
--- Comment #8 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-11 branch has been updated by Richard Biener <rgue...@gcc.gnu.org>: https://gcc.gnu.org/g:16a2fcfe247364088ca9d6d058d870bdfa28b345 commit r11-10020-g16a2fcfe247364088ca9d6d058d870bdfa28b345 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)