aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran/iresolve.cc
diff options
context:
space:
mode:
authorRobin Dapp <rdapp@ventanamicro.com>2025-05-26 16:16:36 +0200
committerRobin Dapp <rdapp@ventanamicro.com>2025-05-28 15:47:56 +0200
commit6ccf845d9fa157e7ebcf2c589a9fc5d8f298961f (patch)
treeb91a7e79142f3e108f1d40e61451c1ca09110498 /gcc/fortran/iresolve.cc
parent5b2e7afb135aa10e17e51b891d4b2c85ee541ade (diff)
downloadgcc-6ccf845d9fa157e7ebcf2c589a9fc5d8f298961f.zip
gcc-6ccf845d9fa157e7ebcf2c589a9fc5d8f298961f.tar.gz
gcc-6ccf845d9fa157e7ebcf2c589a9fc5d8f298961f.tar.bz2
RISC-V: Avoid division by zero in check_builtin_call [PR120436].
In check_builtin_call we eventually perform a division by zero when no vector modes are present. This patch just avoids the division in that case. PR target/120436 gcc/ChangeLog: * config/riscv/riscv-vector-builtins-shapes.cc (struct vset_def): Avoid division by zero. (struct vget_def): Ditto. * config/riscv/riscv-vector-builtins.h (struct function_group_info): Use required_extensions_specified instead of duplicating code. gcc/testsuite/ChangeLog: * gcc.target/riscv/rvv/base/pr120436.c: New test.
Diffstat (limited to 'gcc/fortran/iresolve.cc')
0 files changed, 0 insertions, 0 deletions