aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada
diff options
context:
space:
mode:
authorNathan Sidwell <nathan@acm.org>2022-06-01 04:52:21 -0700
committerNathan Sidwell <nathan@acm.org>2022-06-01 07:43:59 -0700
commit289f860fe62423a66e43989688e1d24bcdb25b5e (patch)
treeee71bc733bf385e7a159681baff6e45bb6fb0f8e /gcc/ada
parentc4d702fb3c1e2f6e1bc8711da81bff59543b1b19 (diff)
downloadgcc-289f860fe62423a66e43989688e1d24bcdb25b5e.zip
gcc-289f860fe62423a66e43989688e1d24bcdb25b5e.tar.gz
gcc-289f860fe62423a66e43989688e1d24bcdb25b5e.tar.bz2
c++: Static init guard generation
The guard generation for a static var init was overly verbose. We can use a bit of RAII and avoid some rechecking. Also in the !cxa_atexit case, the only difference is whether can become whether to use post-inc or pre-dec. gcc/cp/ * decl2.cc (fix_temporary_vars_context_r): Use data argument for new context. (one_static_initialization_or_destruction): Adjust tree walk call. Refactor guard generation.
Diffstat (limited to 'gcc/ada')
0 files changed, 0 insertions, 0 deletions