aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran/trans-openmp.cc
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@adacore.com>2022-10-05 12:21:03 +0200
committerEric Botcazou <ebotcazou@adacore.com>2022-10-05 13:48:57 +0200
commit853ce8eea4ff97850a987167e603387b3d0f1401 (patch)
treee3491bc0be8ba478000800fc3038f91b25a72baf /gcc/fortran/trans-openmp.cc
parentbcc27369910b818047bca466fbcef6a3034dfc7f (diff)
downloadgcc-853ce8eea4ff97850a987167e603387b3d0f1401.zip
gcc-853ce8eea4ff97850a987167e603387b3d0f1401.tar.gz
gcc-853ce8eea4ff97850a987167e603387b3d0f1401.tar.bz2
Fix bogus -Wstringop-overflow warning in Ada
It comes from a discrepancy between get_offset_range, which uses a signed type, and handle_array_ref, which uses an unsigned one, to do computations. gcc/ PR tree-optimization/106698 * pointer-query.cc (handle_array_ref): Fix handling of low bound. gcc/testsuite/ * gnat.dg/lto26.adb: New test. * gnat.dg/lto26_pkg1.ads, gnat.dg/lto26_pkg1.adb: New helper. * gnat.dg/lto26_pkg2.ads, gnat.dg/lto26_pkg2.adb: Likewise.
Diffstat (limited to 'gcc/fortran/trans-openmp.cc')
0 files changed, 0 insertions, 0 deletions