This is the mail archive of the gcc-patches@gcc.gnu.org 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: 3.4 PATCH: fixinc: alpha_wchar


Rainer Orth wrote:
> 
> For quite some time, mainline GCC fails to bootstrap on Tru64 UNIX V4.0F
> and V5.1B, building libstdc++-v3:

> To fix this, I define __STDC_VERSION__ to 199409L for C++ in
> TARGET_OS_CPP_BUILTINS.  Unfortunately, this isn't enough, since
> include/c_std/std_cwchar.h has
> 
> #undef wcsftime
> #undef wcstok
> 
> effectively removing the wcsftime and wcstok declarations.  My solution is
> to use fixincludes and have the wcstok/wcsftime declarations use
> __asm__("wcstok_r"/"__wcsftime_isoc") to change the external names

> Ok for mainline?

Looks fine to me - Bruce


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