This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Patch to correct wchar_t definition on IA64 HP-UX


wchar_t on ia64-hpux should be unsigned int, not int.  This patch
corrects the definition, thereby making gcc.dg/wchar_t-1.c pass.
Bootstrapped with no regressions on ia64-hp-hpux11.23.  OK to commit?

-- 
Joseph S. Myers               http://www.srcf.ucam.org/~jsm28/gcc/
    jsm@polyomino.org.uk (personal mail)
    joseph@codesourcery.com (CodeSourcery mail)
    jsm28@gcc.gnu.org (Bugzilla assignments and CCs)

2005-02-11  Joseph S. Myers  <joseph@codesourcery.com>

	* config/ia64/hpux.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Define.

diff -rupN GCC.orig/gcc/config/ia64/hpux.h GCC/gcc/config/ia64/hpux.h
--- GCC.orig/gcc/config/ia64/hpux.h	2005-01-16 17:22:42.000000000 +0000
+++ GCC/gcc/config/ia64/hpux.h	2005-02-11 12:22:22.000000000 +0000
@@ -30,6 +30,12 @@ Boston, MA 02111-1307, USA.  */
 #undef  TARGET_HPUX
 #define TARGET_HPUX 1
 
+#undef WCHAR_TYPE
+#define WCHAR_TYPE "unsigned int"
+
+#undef WCHAR_TYPE_SIZE
+#define WCHAR_TYPE_SIZE 32
+
 /* Target OS builtins.  */
 #define TARGET_OS_CPP_BUILTINS()			\
 do {							\


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]