This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: 3.4 PATCH: fixinc: alpha_wchar
- From: Bruce Korb <bkorb at veritas dot com>
- To: Rainer Orth <ro at TechFak dot Uni-Bielefeld dot DE>
- Cc: gcc-patches at gcc dot gnu dot org, libstdc++ at gcc dot gnu dot org, Roger Sayle <roger at eyesopen dot com>
- Date: Fri, 21 Nov 2003 09:19:15 -0800
- Subject: Re: 3.4 PATCH: fixinc: alpha_wchar
- References: <16318.17619.440352.212237@xayide.TechFak.Uni-Bielefeld.DE>
- Reply-to: bkorb at veritas dot com
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