aboutsummaryrefslogtreecommitdiff
path: root/gcc/except.cc
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:53:23 -0400
commite0d997e913f811ecf4b3e10891e6a4aab5b38a31 (patch)
tree07dcbc73ac9d424f54f7f5a5539f47473876f997 /gcc/except.cc
parent56f824cc206ff00d466aaeb11211d8005c4668bc (diff)
downloadgcc-master.zip
gcc-master.tar.gz
gcc-master.tar.bz2
Avoid undefined behaviour in build_option_suggestionsHEADtrunkmaster
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.
Diffstat (limited to 'gcc/except.cc')
0 files changed, 0 insertions, 0 deletions