[Bug c/42440] optimization bug with btwowc(EOF) in wchar.h
pinskia at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Sun Dec 20 03:42:00 GMT 2009
------- Comment #2 from pinskia at gcc dot gnu dot org 2009-12-20 03:41 -------
So we have:
extern wint_t __btowc_alias (int __c) __asm ("btowc");
extern __inline wint_t
__attribute__ ((__nothrow__)) btowc (int __c)
{ return (__builtin_constant_p (__c) && __c >= '\0' && __c <= '\x7f'
? (wint_t) __c : __btowc_alias (__c)); }
if (btowc ((-1)) != (0xffffffffu))
I don't know if what people expect this to happen really.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42440
More information about the Gcc-bugs
mailing list