This patch

http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00275.html

breaks UTF tests on Linux. Does check_effective_target_4byte_wchar_t
really work? I got

bash-3.2$ cat w.c
#if 0
#include <wchar.h>
#endif

int
main ()
{
 int dummy[sizeof (wchar_t) >= 4 ? 1 : -1];
 return 0;
}
bash-3.2$  gcc -c w.c
w.c: In function 'main':
w.c:8: error: 'wchar_t' undeclared (first use in this function)
w.c:8: error: (Each undeclared identifier is reported only once
w.c:8: error: for each function it appears in.)
bash-3.2$

Is <wchar.h> included for your test?


-- 
           Summary: UTF tests doesn't work on Linux
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: testsuite
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: hjl dot tools at gmail dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36155

Reply via email to