This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug preprocessor/37324] [4.4 Regression] FAIL: gcc.dg/utf-array.c (test for errors)
- From: "jakub at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 15 Sep 2008 12:15:32 -0000
- Subject: [Bug preprocessor/37324] [4.4 Regression] FAIL: gcc.dg/utf-array.c (test for errors)
- References: <bug-37324-276@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from jakub at gcc dot gnu dot org 2008-09-15 12:15 -------
The problem is that in C we don't have char16_t, char32_t nor wchar_t builtin
types, so they aren't necessarily distinct. With -fshort-wchar wchar_t is
always unsigned short int and char16_t is also unsigned short int, so the
testcase can rely on it, but for utf-array.c we don't have such a guarantee.
The options are either to remove some lines from the C utf-array.c testcase
(without -fshort-wchar on some targets like hppa-hpux wchar_t is the same type
as char32_t, and on other targets it is the same as char16_t). Or add two new
target-supports.exp functions and use them in this case.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37324