gcc-3.1 test gcc.dg/wint_t-1.c fails on cygwin
Billinghurst, David (CRTS)
David.Billinghurst@riotinto.com
Fri Jul 27 00:38:00 GMT 2001
gcc-3.1 test gcc.dg/wint_t-1.c fails on cygwin. The errors are:
... /wint_t-1.c:11: parse error before '*' token
... /wint_t-1.c:11: warning: type defaults to `int' in declaration of
`wi_t_p'
... /wint_t-1.c:11: warning: data definition has no type or storage class
The problem is that wint_t isn't defined in the system headers, as is
apparent in wint_t-1.i below.
I guess there are three possible fixes:
* XFAIL the test
* define something so that the typedef in gcc's own stddef.h is picked
up
* fix the cygwin wchar.h headers
Any suggestions?
++++++++++++++++ wint_t-1.c +++++++++++++
# 8 "/usr/local/src/gcc/gcc/testsuite/gcc.dg/wint_t-1.c"
# 1 "/usr/include/wchar.h" 1 3
# 14 "/usr/include/wchar.h" 3
# 1 "/usr/include/sys/cdefs.h" 1 3
# 15 "/usr/include/wchar.h" 2 3
# 1 "/usr/local/obj/gcc/gcc/include/stddef.h" 1 3
# 147 "/usr/local/obj/gcc/gcc/include/stddef.h" 3
typedef int ptrdiff_t;
# 199 "/usr/local/obj/gcc/gcc/include/stddef.h" 3
typedef unsigned int size_t;
# 288 "/usr/local/obj/gcc/gcc/include/stddef.h" 3
typedef short unsigned int wchar_t;
# 19 "/usr/include/wchar.h" 2 3
int wcscmp (const wchar_t *__s1, const wchar_t *__s2);
size_t wcslen (const wchar_t *__s1);
# 9 "/usr/local/src/gcc/gcc/testsuite/gcc.dg/wint_t-1.c" 2
unsigned int __wi_t__;
wint_t *wi_t_p;
void
wit (void)
{
wi_t_p = &__wi_t__;
}
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
More information about the Cygwin
mailing list