Eric Blake wrote:
> > http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42440
In summary, when a glibc version 2.3.x to 2.5 is used with a gcc version
4.3 or newer, the use of __inline in <wchar.h> leads to multiple
misbehaviours:
- miscompilation, as observed by Karl,
- link errors, as observed here:
http://sourceware.org/bugzilla/show_bug.cgi?id=4022
> Any objections to the following?
> + * m4/btowc.m4 (gl_FUNC_BTOWC): Add a timeout.
> + * doc/posix-functions/btowc.texi (btowc): Document the problem.
Yes, I object. It's not only about 'btowc'. The entire <wchar.h> is
broken in this situation. The protection needs to go into m4/wchar.m4.
Bruno