aboutsummaryrefslogtreecommitdiff
path: root/gcc/cppdefault.h
diff options
context:
space:
mode:
authorNathan Sidwell <nathan@acm.org>2020-07-22 08:07:25 -0700
committerNathan Sidwell <nathan@acm.org>2020-07-22 08:43:25 -0700
commit63fa0927e8aba59b1a301f7d13f5cd0e6bb62a66 (patch)
tree050b1f2f42aaeb43645d0ea6eaeb3d7acd29ce4d /gcc/cppdefault.h
parent18d96339d26e31f06707fe234040bde45b6de70b (diff)
downloadgcc-63fa0927e8aba59b1a301f7d13f5cd0e6bb62a66.zip
gcc-63fa0927e8aba59b1a301f7d13f5cd0e6bb62a66.tar.gz
gcc-63fa0927e8aba59b1a301f7d13f5cd0e6bb62a66.tar.bz2
c++: Shrink lambda-expr
I noticed the default capture mode and the discriminator both used ints. That seems excessive. This shrinks them to 8 bits and 16 bits respectively. I suppose the discriminator could use the remaining 24 bits of an int allocation unit, if we're worried about more that 64K lambdas per function. I know, users are strange :) On a 64 bit system this saves 64 bits, because we also had 32 bits of padding added. gcc/cp/ * cp-tree.h (struct tree_lambda_expr): Shrink default_capture_mode & discriminator.
Diffstat (limited to 'gcc/cppdefault.h')
0 files changed, 0 insertions, 0 deletions