aboutsummaryrefslogtreecommitdiff
path: root/gcc/function.c
diff options
context:
space:
mode:
authorIain Buclaw <ibuclaw@gdcproject.org>2020-09-12 16:26:58 +0200
committerIain Buclaw <ibuclaw@gdcproject.org>2020-09-12 21:34:38 +0200
commite4011c13c1f8d51f00af61bcb8189bcbe45823b7 (patch)
tree613e7276d4ebf04ef64d1546cff0fdded9d58bd1 /gcc/function.c
parent49482217e0ade3fe92ea050c01f5f7a6ddc31e95 (diff)
downloadgcc-e4011c13c1f8d51f00af61bcb8189bcbe45823b7.zip
gcc-e4011c13c1f8d51f00af61bcb8189bcbe45823b7.tar.gz
gcc-e4011c13c1f8d51f00af61bcb8189bcbe45823b7.tar.bz2
d: Build TYPE_DECLs for non-numeric enum types.
This is done so that the DWARF pass will emit a DW_TAG_typedef where the member type of an enum can't be represented in an ENUMERAL_TYPE. gcc/d/ChangeLog: * d-builtins.cc (d_build_d_type_nodes): Call build_ctype() on all basic front-end types. * decl.cc (DeclVisitor::visit (EnumDeclaration *)): Always add decl to current binding level. (build_type_decl): Build TYPE_DECL as a typedef if not for an enum or record type. * types.cc (TypeVisitor::visit (TypeEnum *)): Set underlying type for ENUMERAL_TYPEs. Build TYPE_DECL for non-numeric enums.
Diffstat (limited to 'gcc/function.c')
0 files changed, 0 insertions, 0 deletions