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: rs6000: set WCHAR_UNSIGNED appropriately


It seems this was missed completely, causing gcc.dg/cpp/wchar-1.c to
fail on AIX.

2003-03-18  DJ Delorie  <dj at redhat dot com>

	* config/rs6000/rs6000.h (WCHAR_UNSIGNED): Define.
	* config/rs6000/aix51.h (WCHAR_UNSIGNED): Define.
	* config/rs6000/aix52.h (WCHAR_UNSIGNED): Define.
	* config/rs6000/linux64.h (WCHAR_UNSIGNED): Define.
	* config/rs6000/sysv4.h (WCHAR_UNSIGNED): Define.
	* config/rs6000/windiss.h (WCHAR_UNSIGNED): Define.

Index: config/rs6000/aix51.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/rs6000/aix51.h,v
retrieving revision 1.18
diff -p -2 -r1.18  config/rs6000/aix51.h
*** config/rs6000/aix51.h	27 Feb 2003 21:51:19 -0000	1.18
--- config/rs6000/aix51.h	18 Mar 2003 23:41:58 -0000
*************** do {									\
*** 179,182 ****
--- 179,184 ----
  #undef  WCHAR_TYPE
  #define WCHAR_TYPE (!TARGET_64BIT ? "short unsigned int" : "unsigned int")
+ #undef WCHAR_UNSIGNED
+ #define WCHAR_UNSIGNED 1
  
  /* Width of wchar_t in bits.  */
Index: config/rs6000/aix52.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/rs6000/aix52.h,v
retrieving revision 1.3
diff -p -2 -r1.3  config/rs6000/aix52.h
*** config/rs6000/aix52.h	27 Feb 2003 21:51:19 -0000	1.3
--- config/rs6000/aix52.h	18 Mar 2003 23:41:58 -0000
*************** do {									\
*** 171,174 ****
--- 171,176 ----
  #undef  WCHAR_TYPE
  #define WCHAR_TYPE (!TARGET_64BIT ? "short unsigned int" : "unsigned int")
+ #undef WCHAR_UNSIGNED
+ #define WCHAR_UNSIGNED 1
  
  /* Width of wchar_t in bits.  */
Index: config/rs6000/linux64.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/rs6000/linux64.h,v
retrieving revision 1.35
diff -p -2 -r1.35  config/rs6000/linux64.h
*** config/rs6000/linux64.h	18 Mar 2003 02:28:46 -0000	1.35
--- config/rs6000/linux64.h	18 Mar 2003 23:41:58 -0000
*************** Boston, MA 02111-1307, USA.  */
*** 241,244 ****
--- 241,246 ----
  #undef  WCHAR_TYPE
  #define WCHAR_TYPE "int"
+ #undef WCHAR_UNSIGNED
+ #define WCHAR_UNSIGNED 0
  #undef  WCHAR_TYPE_SIZE
  #define WCHAR_TYPE_SIZE 32
Index: config/rs6000/rs6000.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/rs6000/rs6000.h,v
retrieving revision 1.257
diff -p -2 -r1.257  config/rs6000/rs6000.h
*** config/rs6000/rs6000.h	13 Mar 2003 10:35:47 -0000	1.257
--- config/rs6000/rs6000.h	18 Mar 2003 23:41:58 -0000
*************** extern int rs6000_default_long_calls;
*** 549,552 ****
--- 549,553 ----
  /* Type used for wchar_t, as a string used in a declaration.  */
  #define WCHAR_TYPE "short unsigned int"
+ #define WCHAR_UNSIGNED 1
  
  /* Width of wchar_t in bits.  */
Index: config/rs6000/sysv4.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/rs6000/sysv4.h,v
retrieving revision 1.117
diff -p -2 -r1.117  config/rs6000/sysv4.h
*** config/rs6000/sysv4.h	13 Mar 2003 10:35:47 -0000	1.117
--- config/rs6000/sysv4.h	18 Mar 2003 23:41:58 -0000
*************** do {									\
*** 357,360 ****
--- 357,362 ----
  #undef	WCHAR_TYPE
  #define WCHAR_TYPE "long int"
+ #undef WCHAR_UNSIGNED
+ #define WCHAR_UNSIGNED 0
  
  /* Width of wchar_t in bits.  */
Index: config/rs6000/windiss.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/rs6000/windiss.h,v
retrieving revision 1.2
diff -p -2 -r1.2  config/rs6000/windiss.h
*** config/rs6000/windiss.h	10 Nov 2002 20:47:45 -0000	1.2
--- config/rs6000/windiss.h	18 Mar 2003 23:41:58 -0000
***************
*** 1,4 ****
  /* Support for GCC on PowerPC using WindISS simulator.
!    Copyright (C) 2002 Free Software Foundation, Inc.
     Contributed by CodeSourcery, LLC. 
  
--- 1,4 ----
  /* Support for GCC on PowerPC using WindISS simulator.
!    Copyright (C) 2002, 2003 Free Software Foundation, Inc.
     Contributed by CodeSourcery, LLC. 
  
*************** Boston, MA 02111-1307, USA.  */
*** 43,46 ****
--- 43,48 ----
  #undef WCHAR_TYPE
  #define WCHAR_TYPE "short unsigned int"
+ #undef WCHAR_UNSIGNED
+ #define WCHAR_UNSIGNED 1
  
  #undef WCHAR_TYPE_SIZE


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