bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: btowc(0) configure check hangs clang? [was: Possible configure bug]


From: Bruno Haible
Subject: Re: btowc(0) configure check hangs clang? [was: Possible configure bug]
Date: Mon, 5 Sep 2011 21:38:48 +0200
User-agent: KMail/1.13.6 (Linux/2.6.37.6-0.5-desktop; KDE/4.6.0; x86_64; ; )

On 2011-09-03 I wrote:
> I guess that clang hangs or produces an endless loop because of
> this inline definition in <wchar.h>:
> 
> extern wint_t __btowc_alias (int __c) __asm ("btowc");
> __extern_inline wint_t
> __NTH (btowc (int __c))
> { return (__builtin_constant_p (__c) && __c >= '\0' && __c <= '\x7f'
>           ? (wint_t) __c : __btowc_alias (__c)); }
> 
> Evidently, clang gives a different semantics to __asm than GCC.
> But GCC's semantics of __asm is fixed for 20 years.
> 
> Conclusion: Needs to be fixed in clang.

And it's confirmed by this bug report in clang's bug tracker:
<http://llvm.org/bugs/show_bug.cgi?id=9614>

Bruno
-- 
In memoriam Moshe Weinberg <http://en.wikipedia.org/wiki/Moshe_Weinberg>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]