diff options
author | Iain Buclaw <ibuclaw@gdcproject.org> | 2022-06-22 19:11:20 +0200 |
---|---|---|
committer | Iain Buclaw <ibuclaw@gdcproject.org> | 2022-06-24 20:49:58 +0200 |
commit | c0ad48527c314a1e9354b7c26718b56ed4abc92c (patch) | |
tree | 505100920ec9714013c52f1ee20dcb25ef6158e5 /gcc/d/expr.cc | |
parent | bb403de36aa29e5398119e78a2c96794bdd6bad8 (diff) | |
download | gcc-c0ad48527c314a1e9354b7c26718b56ed4abc92c.zip gcc-c0ad48527c314a1e9354b7c26718b56ed4abc92c.tar.gz gcc-c0ad48527c314a1e9354b7c26718b56ed4abc92c.tar.bz2 |
tilegx: Fix infinite loop in gen-mul-tables generator
Since around GCC 10, the condition `j < (INTMAX_MAX / 10)' will get
optimized into `j != 922337203685477580', which will result in an
infinite loop for certain inputs of `j'.
Copy the condition already used by the -DTILEPRO generator code, which
doesn't fall into this trap.
gcc/ChangeLog:
* config/tilepro/gen-mul-tables.cc (tilegx_emit): Adjust loop
condition to avoid overflow.
Diffstat (limited to 'gcc/d/expr.cc')
0 files changed, 0 insertions, 0 deletions