diff options
author | Iain Buclaw <ibuclaw@gdcproject.org> | 2021-08-28 20:22:22 +0200 |
---|---|---|
committer | Iain Buclaw <ibuclaw@gdcproject.org> | 2021-08-29 17:19:02 +0200 |
commit | 0abfd7f4f484500a37a3e367d0a63a1f38bba2fa (patch) | |
tree | f8f3ffff4e46a18bdd7cae4cff7568fa85fa97cd | |
parent | ce15a3e757c3a0adc611d907a3d4ba00c243a8f0 (diff) | |
download | gcc-0abfd7f4f484500a37a3e367d0a63a1f38bba2fa.zip gcc-0abfd7f4f484500a37a3e367d0a63a1f38bba2fa.tar.gz gcc-0abfd7f4f484500a37a3e367d0a63a1f38bba2fa.tar.bz2 |
d: Get __c_wchar_t type from build_frontend_type
gcc/d/ChangeLog:
* types.cc (TypeVisitor::visit(TypeEnum*)): Get wchar_t type from
build_frontend_type.
-rw-r--r-- | gcc/d/types.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/d/types.cc b/gcc/d/types.cc index 8e67461..fc8a133 100644 --- a/gcc/d/types.cc +++ b/gcc/d/types.cc @@ -886,7 +886,8 @@ public: else if (strcmp (ident, "ulong") == 0) underlying = build_frontend_type (long_unsigned_type_node); else if (strcmp (ident, "wchar_t") == 0) - underlying = target.c.twchar_t; + underlying = + build_frontend_type (make_unsigned_type (WCHAR_TYPE_SIZE)); else if (strcmp (ident, "longlong") == 0) underlying = build_frontend_type (long_long_integer_type_node); else if (strcmp (ident, "ulonglong") == 0) |