re PR testsuite/36155 (UTF tests doesn't work on Linux)
authorH.J. Lu <hongjiu.lu@intel.com>
Tue, 6 May 2008 18:37:03 +0000 (18:37 +0000)
committerH.J. Lu <hjl@gcc.gnu.org>
Tue, 6 May 2008 18:37:03 +0000 (11:37 -0700)
2008-05-06  H.J. Lu  <hongjiu.lu@intel.com>

PR testsuite/36155
* gcc.dg/utf32-4.c: Fix a typo.

* lib/target-supports.exp (check_effective_target_4byte_wchar_t):
Use __WCHAR_TYPE__ instead of wchar_t.

From-SVN: r134994

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/utf32-4.c
gcc/testsuite/lib/target-supports.exp

index 7e4386ef3808d8abd76c2725448be08dd4ba7689..c2434e7d42defadebcb273c1f9c4b7b8e338ad17 100644 (file)
@@ -1,3 +1,11 @@
+2008-05-06  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR testsuite/36155
+       * gcc.dg/utf32-4.c: Fix a typo.
+
+       * lib/target-supports.exp (check_effective_target_4byte_wchar_t):
+       Use __WCHAR_TYPE__ instead of wchar_t.
+
 2008-05-06  Mark Shinwell  <shinwell@codesourcery.com>
            Daniel Jacobowitz  <dan@codesourcery.com>
            Andrew Jenner  <andrew@codesourcery.com>
index 48d84fd421905788667e07ea9366b6697830b9d9..8a2dbdff6b2a11db2f6f23887ed21fce8eda929c 100644 (file)
@@ -15,6 +15,6 @@ char32_t      c5 = u'\u2029';
 char32_t       c6 = u'\U00064321';     /* { dg-warning "constant too long" } */
 char32_t       c7 = L'a';
 char32_t       c8 = L'\u2029';
-char32_t       c9 = L'\U00064321';     /* { dg-warning "constant too long" { target { ! 4byte_wchar_t } } } */  
+char32_t       c9 = L'\U00064321';     /* { dg-warning "constant too long" "" { target { ! 4byte_wchar_t } } } */
 
 int main () {}
index e071934a947b348ee779dd2d940a138b49b3fba7..de78c716ee21e37b9fda3a8fe77b2434e1484de9 100644 (file)
@@ -2357,6 +2357,6 @@ proc check_effective_target_c99_runtime { } {
 
 proc check_effective_target_4byte_wchar_t { } {
     return [check_no_compiler_messages 4byte_wchar_t object {
-       int dummy[sizeof (wchar_t) >= 4 ? 1 : -1];
+       int dummy[sizeof (__WCHAR_TYPE__) >= 4 ? 1 : -1];
     }]
 }