aboutsummaryrefslogtreecommitdiff
path: root/gcc/c
diff options
context:
space:
mode:
authorKwok Cheung Yeung <kcy@codesourcery.com>2021-03-01 14:15:30 -0800
committerSandra Loosemore <sloosemore@baylibre.com>2025-05-15 20:25:46 +0000
commit81d73ad786759aadd926273e8ddd4adc7e6015bc (patch)
treeae4086affe064603d1c21d8fb378642c99f4e3f2 /gcc/c
parent48db8148b94ab2d93d9d5301f44950adf2a9c786 (diff)
downloadgcc-81d73ad786759aadd926273e8ddd4adc7e6015bc.zip
gcc-81d73ad786759aadd926273e8ddd4adc7e6015bc.tar.gz
gcc-81d73ad786759aadd926273e8ddd4adc7e6015bc.tar.bz2
openmp: Scale type precision of collapsed iterator variable
This sets the type precision of the collapsed iterator variable to the sum of the precision of the collapsed loop variables, up to a maximum of sizeof(long long) (i.e. 64-bits). gcc/ChangeLog * omp-expand.cc (expand_oacc_for): Convert .tile variable to diff_type before multiplying. * omp-general.cc (omp_extract_for_data): Use accumulated precision of all collapsed for-loops as precision of iteration variable, up to the precision of a long long. libgomp/ChangeLog * testsuite/libgomp.c-c++-common/collapse-4.c: New. * testsuite/libgomp.fortran/collapse5.f90: New.
Diffstat (limited to 'gcc/c')
0 files changed, 0 insertions, 0 deletions