aboutsummaryrefslogtreecommitdiff
path: root/libgcc
diff options
context:
space:
mode:
authorKewen Lin <linkw@linux.ibm.com>2024-04-08 21:01:36 -0500
committerKewen Lin <linkw@linux.ibm.com>2024-04-08 21:02:13 -0500
commit26eb5f8fd173e2425ae7505528fc426de4b7e34c (patch)
treee3b2befc56dbc972c5826ca3d6f1b83bb749e3d2 /libgcc
parent600bf396799a022e65938de572ad1a79a951b95a (diff)
downloadgcc-26eb5f8fd173e2425ae7505528fc426de4b7e34c.zip
gcc-26eb5f8fd173e2425ae7505528fc426de4b7e34c.tar.gz
gcc-26eb5f8fd173e2425ae7505528fc426de4b7e34c.tar.bz2
rs6000: Fix wrong align passed to build_aligned_type [PR88309]
As the comments in PR88309 show, there are two oversights in rs6000_gimple_fold_builtin that pass align in bytes to build_aligned_type but which actually requires align in bits, it causes unexpected ICE or hanging in function is_miss_rate_acceptable due to zero align_unit value. This patch is to fix them by converting bytes to bits, add an assertion on positive align_unit value and notes function build_aligned_type requires align measured in bits in its function comment. PR target/88309 Co-authored-by: Andrew Pinski <quic_apinski@quicinc.com> gcc/ChangeLog: * config/rs6000/rs6000-builtin.cc (rs6000_gimple_fold_builtin): Fix wrong align passed to function build_aligned_type. * tree-ssa-loop-prefetch.cc (is_miss_rate_acceptable): Add an assertion to ensure align_unit should be positive. * tree.cc (build_qualified_type): Update function comments. gcc/testsuite/ChangeLog: * gcc.target/powerpc/pr88309.c: New test.
Diffstat (limited to 'libgcc')
0 files changed, 0 insertions, 0 deletions