This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Test gcc.dg/cpp/wchar-1.c fails on cygwin
- From: "Billinghurst, David (CRTS)" <David dot Billinghurst at riotinto dot com>
- To: <gcc-bugs at gcc dot gnu dot org>
- Cc: <neil at daikokuya dot demon dot co dot uk>
- Date: Fri, 15 Mar 2002 15:00:19 +1100
- Subject: Test gcc.dg/cpp/wchar-1.c fails on cygwin
New test gcc.dg/cpp/wchar-1.c fails on cygwin with
.../wchar-1.c: In function `main':
.../wchar-1.c:18: warning: comparison is always false due to limited range of data type
I am unsure if the warning should be ignored or there is a problem.
Preprocessed output using -E -dD is
# 1 "/usr/local/src/gcc-3.1/gcc/testsuite/gcc.dg/cpp/wchar-1.c"
# 1 "<built-in>"
#define __VERSION__ "3.1 20020313 (prerelease)"
#define __USER_LABEL_PREFIX__ _
#define __REGISTER_PREFIX__
#define __HAVE_BUILTIN_SETJMP__ 1
#define __USING_SJLJ_EXCEPTIONS__ 1
#define __SIZE_TYPE__ unsigned int
#define __PTRDIFF_TYPE__ int
#define __WCHAR_TYPE__ short unsigned int
#define __WINT_TYPE__ unsigned int
#define __STDC__ 1
#define __STRICT_ANSI__ 1
# 1 "<command line>"
#define __GNUC__ 3
# 1 "<command line>"
#define __GNUC_MINOR__ 1
# 1 "<command line>"
#define __GNUC_PATCHLEVEL__ 0
# 1 "<command line>"
#define _X86_ 1
# 1 "<command line>"
#define __NO_INLINE__ 1
# 1 "<command line>"
#define __STDC_HOSTED__ 1
# 1 "<command line>"
#define __i386 1
# 1 "<command line>"
#define __i386__ 1
# 1 "<command line>"
#define __tune_i686__ 1
# 1 "<command line>"
#define __tune_pentiumpro__ 1
# 1 "<command line>"
#define __stdcall __attribute__((__stdcall__))
# 1 "<command line>"
#define __cdecl __attribute__((__cdecl__))
# 1 "<command line>"
#define __declspec(x) __attribute__((x))
# 1 "<command line>"
#define __i386__ 1
# 1 "<command line>"
#define __i386 1
# 1 "<command line>"
#define __CYGWIN32__ 1
# 1 "<command line>"
#define __CYGWIN__ 1
# 1 "<command line>"
#define __unix__ 1
# 1 "<command line>"
#define __unix 1
# 1 "/usr/local/src/gcc-3.1/gcc/testsuite/gcc.dg/cpp/wchar-1.c"
# 10 "/usr/local/src/gcc-3.1/gcc/testsuite/gcc.dg/cpp/wchar-1.c"
int main ()
{
short unsigned int c = -1;
if (c < 0)
abort ();
return 0;
}