This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
wchar regression on 3.1 branch on hppa*-hp-hpux*
- From: "John David Anglin" <dave at hiauly1 dot hia dot nrc dot ca>
- To: gcc-patches at gcc dot gnu dot org
- Date: Fri, 31 May 2002 20:48:59 +2000 (EDT)
- Subject: wchar regression on 3.1 branch on hppa*-hp-hpux*
This fixes a wide character problem in cpp noticed by Neil Booth, but
too late for the 3.1 release. Applied to the 3.1 branch only.
Dave
--
J. David Anglin dave.anglin@nrc.ca
National Research Council of Canada (613) 990-0752 (FAX: 952-6605)
2002-05-31 John David Anglin <dave@hiauly1.hia.nrc.ca>
* pa-linux.h (WCHAR_UNSIGNED): Define to 0.
* pa.h (WCHAR_UNSIGNED): Define to 1.
Index: config/pa/pa-linux.h
===================================================================
RCS file: /cvsroot/gcc/gcc/gcc/config/pa/pa-linux.h,v
retrieving revision 1.12.2.4
diff -u -3 -p -r1.12.2.4 pa-linux.h
--- config/pa/pa-linux.h 15 Apr 2002 20:27:34 -0000 1.12.2.4
+++ config/pa/pa-linux.h 31 May 2002 21:07:12 -0000
@@ -18,6 +18,10 @@ along with GNU CC; see the file COPYING.
the Free Software Foundation, 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
+/* Wide characters are signed. */
+#undef WCHAR_UNSIGNED
+#define WCHAR_UNSIGNED 0
+
/* Use DWARF2 debugging info and unwind. */
#undef PREFERRED_DEBUGGING_TYPE
#define PREFERRED_DEBUGGING_TYPE DWARF2_DEBUG
Index: config/pa/pa.h
===================================================================
RCS file: /cvsroot/gcc/gcc/gcc/config/pa/pa.h,v
retrieving revision 1.138.2.5
diff -u -3 -p -r1.138.2.5 pa.h
--- config/pa/pa.h 2 May 2002 00:33:08 -0000 1.138.2.5
+++ config/pa/pa.h 31 May 2002 21:07:13 -0000
@@ -348,6 +348,7 @@ extern int target_flags;
#define SIZE_TYPE "unsigned int"
#define PTRDIFF_TYPE "int"
#define WCHAR_TYPE "unsigned int"
+#define WCHAR_UNSIGNED 1
#define WCHAR_TYPE_SIZE 32
/* Show we can debug even without a frame pointer. */