aboutsummaryrefslogtreecommitdiff
path: root/gcc/stringpool.c
diff options
context:
space:
mode:
authorNathan Sidwell <nathan@acm.org>2020-07-22 08:20:31 -0700
committerNathan Sidwell <nathan@acm.org>2020-07-22 08:43:25 -0700
commit0f32c94fc72313798b3a9033c92ceb34f7b7febc (patch)
tree59649da06fa27294415cba4aaf3bcb560e7dc37d /gcc/stringpool.c
parent63fa0927e8aba59b1a301f7d13f5cd0e6bb62a66 (diff)
downloadgcc-0f32c94fc72313798b3a9033c92ceb34f7b7febc.zip
gcc-0f32c94fc72313798b3a9033c92ceb34f7b7febc.tar.gz
gcc-0f32c94fc72313798b3a9033c92ceb34f7b7febc.tar.bz2
c++: More cleanups for modern C++
Here are some more places where we can declare variables at the assignment point, rather than use C89. Also, let's name our variables by what they contain -- the register allocator is perfectly able to track liveness for us. gcc/cp/ * decl.c (decls_match): Move variables into scopes they're needed in. (duplicate_decls): Use STRIP_TEMPLATE. (build_typename_type): Move var decls to their assignments. (begin_function_body): Likewise. * decl2.c (get_guard): Likewise. (mark_used): Use true for truthiness. * error.c (dump_aggr_type): Hold the decl in a var called 'decl', not 'name'.
Diffstat (limited to 'gcc/stringpool.c')
0 files changed, 0 insertions, 0 deletions