| www.delorie.com/archives/browse.cgi | search |
| Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
| List-Subscribe: | <mailto:cygwin-subscribe AT sources DOT redhat DOT com> |
| List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT sources DOT redhat DOT com> |
| List-Help: | <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs> |
| Sender: | cygwin-owner AT sources DOT redhat DOT com |
| Delivered-To: | mailing list cygwin AT sources DOT redhat DOT com |
| Message-ID: | <8D00C32549556B4E977F81DBC24E985D1B1BBC@crtsmail1.technol_exch.corp.riotinto.org> |
| From: | "Billinghurst, David (CRTS)" <David DOT Billinghurst AT riotinto DOT com> |
| To: | "'gcc-bugs AT gcc DOT gnu DOT org'" <gcc-bugs AT gcc DOT gnu DOT org> |
| Cc: | "'cygwin AT cygwin DOT com'" <cygwin AT cygwin DOT com> |
| Subject: | gcc-3.1 test gcc.dg/wint_t-1.c fails on cygwin |
| Date: | Fri, 27 Jul 2001 07:37:50 -0000 |
| MIME-Version: | 1.0 |
| X-Mailer: | Internet Mail Service (5.5.2653.19) |
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/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |