[Bug tree-optimization/105431] ICE: SIGSEGV in powi_as_mults_1 (tree-ssa-math-opts.cc:1512) with -Ofast and __builtin_pow()
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu May 19 14:03:36 GMT 2022
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
<rguenth@gcc.gnu.org>:
https://gcc.gnu.org/g:16a2fcfe247364088ca9d6d058d870bdfa28b345
commit r11-10020-g16a2fcfe247364088ca9d6d058d870bdfa28b345
Author: Richard Biener <rguenther@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 <rguenther@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)
More information about the Gcc-bugs
mailing list