This is the mail archive of the mailing list for the GCC project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH 2/8] Remove char16_t and char32_t dependency on <stdint.h>

On 26/07/18 16:59 +0100, Jonathan Wakely wrote:
On 26/07/18 11:51 -0400, Marek Polacek wrote:
On Thu, Jul 26, 2018 at 03:01:51PM +0100, wrote:
--- a/libstdc++-v3/src/c++98/
+++ b/libstdc++-v3/src/c++98/
@@ -201,7 +201,6 @@ namespace
  fake_messages_w messages_w;

  typedef char fake_codecvt_c16[sizeof(codecvt<char16_t, char, mbstate_t>)]
  __attribute__ ((aligned(__alignof__(codecvt<char16_t, char, mbstate_t>))));
  fake_codecvt_c16 codecvt_c16;
@@ -209,7 +208,6 @@ namespace
  typedef char fake_codecvt_c32[sizeof(codecvt<char32_t, char, mbstate_t>)]
  __attribute__ ((aligned(__alignof__(codecvt<char32_t, char, mbstate_t>))));
  fake_codecvt_c32 codecvt_c32;

  // Storage for "C" locale caches.
  typedef char fake_num_cache_c[sizeof(std::__numpunct_cache<char>)]
    &codecvt<wchar_t, char, mbstate_t>::id,
    &codecvt<char16_t, char, mbstate_t>::id,
    &codecvt<char32_t, char, mbstate_t>::id,
    _M_init_facet(new (&messages_w) std::messages<wchar_t>(1));


This seems like a mistake; ok to fix it with the following?

Doh, yes please do - thanks.

The warning scrolled by too fast for me to see:

/home/jwakely/src/gcc/libstdc++-v3/src/c++98/ warning: extra tokens at end of #ifdef directive

The downside of building with -j30 on a big machine.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]