aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran/trans-openmp.cc
diff options
context:
space:
mode:
authorPhilipp Tomsich <philipp.tomsich@vrull.eu>2022-10-03 21:59:50 +0200
committerPhilipp Tomsich <philipp.tomsich@vrull.eu>2022-10-06 12:33:49 +0200
commitb1cfbccc41de6aec950c0f662e7e85ab34bfff8a (patch)
treee136e634e3a239158ea348492741aefbd9ebc0bb /gcc/fortran/trans-openmp.cc
parent85333b9265720fc4e49397301cb16324d2b89aa7 (diff)
downloadgcc-b1cfbccc41de6aec950c0f662e7e85ab34bfff8a.zip
gcc-b1cfbccc41de6aec950c0f662e7e85ab34bfff8a.tar.gz
gcc-b1cfbccc41de6aec950c0f662e7e85ab34bfff8a.tar.bz2
aarch64: fix off-by-one in reading cpuinfo
Fixes: 341573406b39 Don't subtract one from the result of strnlen() when trying to point to the first character after the current string. This issue would cause individual characters (where the 128 byte buffers are stitched together) to be lost. gcc/ChangeLog: * config/aarch64/driver-aarch64.cc (readline): Fix off-by-one. gcc/testsuite/ChangeLog: * gcc.target/aarch64/cpunative/info_18: New test. * gcc.target/aarch64/cpunative/native_cpu_18.c: New test. Signed-off-by: Philipp Tomsich <philipp.tomsich@vrull.eu>
Diffstat (limited to 'gcc/fortran/trans-openmp.cc')
0 files changed, 0 insertions, 0 deletions