[Bug tree-optimization/105368] [10 Regression] ICE: SIGSEGV in powi_lookup_cost (tree-ssa-math-opts.cc:1441) with -Ofast and __builtin_powf()
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri May 27 13:15:18 GMT 2022
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105368
--- Comment #10 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-10 branch has been updated by Richard Biener
<rguenth@gcc.gnu.org>:
https://gcc.gnu.org/g:ebe6ffee1aa2d819e4fbdf4130e054a33c274b38
commit r10-10764-gebe6ffee1aa2d819e4fbdf4130e054a33c274b38
Author: Richard Biener <rguenther@suse.de>
Date: Mon Apr 25 10:55:21 2022 +0200
tree-optimization/105368 - avoid overflow in powi_cost
The following avoids undefined signed overflow when computing
the absolute of the exponent in powi_cost.
2022-04-25 Richard Biener <rguenther@suse.de>
PR tree-optimization/105368
* tree-ssa-math-opts.c (powi_cost): Use absu_hwi.
(cherry picked from commit f0e170f72f8bfaa2a64e1d09ebdfd48f917420f1)
More information about the Gcc-bugs
mailing list