From: Iain Buclaw Date: Sat, 28 Aug 2021 18:22:22 +0000 (+0200) Subject: d: Get __c_wchar_t type from build_frontend_type X-Git-Tag: basepoints/gcc-13~5104 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0abfd7f4f484500a37a3e367d0a63a1f38bba2fa;p=thirdparty%2Fgcc.git 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. --- diff --git a/gcc/d/types.cc b/gcc/d/types.cc index 8e674618004d..fc8a1330696d 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)