aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran/module.c
diff options
context:
space:
mode:
authorStefan Schulze Frielinghaus <stefansf@linux.ibm.com>2020-07-22 09:27:49 +0200
committerStefan Schulze Frielinghaus <stefansf@linux.ibm.com>2020-07-29 10:44:12 +0200
commitf1660ceb0d3b0076555058087307f88b80619a6f (patch)
tree2618f154d4848882280c06f9a8c09dfd87cc3a66 /gcc/fortran/module.c
parent269322ece17202632bc354e9c510e4a5bd6ad84b (diff)
downloadgcc-f1660ceb0d3b0076555058087307f88b80619a6f.zip
gcc-f1660ceb0d3b0076555058087307f88b80619a6f.tar.gz
gcc-f1660ceb0d3b0076555058087307f88b80619a6f.tar.bz2
vect: Fix infinite loop while determining peeling amount
This is a follow up to commit 5c9669a0e6c respectively discussion https://gcc.gnu.org/pipermail/gcc-patches/2020-June/549132.html In case a type has a lower alignment than its size, ensure that we advance. For example, on s390x we have for a long double an alignment constraint of 8 bytes whereas the size is 16 bytes. Increasing the loop variable only by TARGET_ALIGN / DR_SIZE which equals zero in case of a long double results in an infinite loop. This is fixed by ensuring that we advance at least by one. gcc/ChangeLog: * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Ensure that loop variable npeel_tmp advances in each iteration.
Diffstat (limited to 'gcc/fortran/module.c')
0 files changed, 0 insertions, 0 deletions