aboutsummaryrefslogtreecommitdiff
path: root/liboffloadmic/configure.ac
diff options
context:
space:
mode:
authorSiddhesh Poyarekar <siddhesh@gotplt.org>2024-07-19 12:44:32 -0400
committerSiddhesh Poyarekar <siddhesh@gotplt.org>2024-07-20 07:54:21 -0400
commit2eca8a9548eb7db21ee94b32fb482b2f545cf4b7 (patch)
treee8ddd099969a6d277dc5a78ed0c6f40c1e66081d /liboffloadmic/configure.ac
parent94e4661fee27c5b1362e02690c5047e0b543fc9a (diff)
downloadgcc-releases/gcc-14.zip
gcc-releases/gcc-14.tar.gz
gcc-releases/gcc-14.tar.bz2
Avoid undefined behaviour in build_option_suggestionsreleases/gcc-14
The inner loop in build_option_suggestions uses OPTION to take the address of OPTB and use it across iterations, which is undefined behaviour since OPTB is defined within the loop. Pull it outside the loop to make this defined. gcc/ChangeLog: * opt-suggestions.cc (option_proposer::build_option_suggestions): Pull OPTB definition out of the innermost loop. (cherry picked from commit e0d997e913f811ecf4b3e10891e6a4aab5b38a31)
Diffstat (limited to 'liboffloadmic/configure.ac')
0 files changed, 0 insertions, 0 deletions