aboutsummaryrefslogtreecommitdiff
path: root/gcc/config
diff options
context:
space:
mode:
authorNeil Booth <neil@daikokuya.demon.co.uk>2002-05-07 21:07:24 +0000
committerNeil Booth <neil@gcc.gnu.org>2002-05-07 21:07:24 +0000
commit44a147ad2ee5436c0f2b1bb95e3de61cce8c226e (patch)
tree74df1638e099a3467f9206ea84d1ec4945ea2b23 /gcc/config
parent522e3d222659a0f3ea3d0ffc1e72b35feafed01e (diff)
downloadgcc-44a147ad2ee5436c0f2b1bb95e3de61cce8c226e.zip
gcc-44a147ad2ee5436c0f2b1bb95e3de61cce8c226e.tar.gz
gcc-44a147ad2ee5436c0f2b1bb95e3de61cce8c226e.tar.bz2
c-common.c (c_common_init): Set options->unsigned_wchar.
* c-common.c (c_common_init): Set options->unsigned_wchar. * cppinit.c (cpp_create_reader): Default unsigned_wchar, group target dependencies. (init_builtins, cpp_handle_option): Update. * cpplex.c (cpp_interpret_charconst): Update. * cpplib.h (struct cpp_options): Add unsigned_wchar, rename signed_char to unsigned_char, group target dependencies. * defaults.h (WCHAR_UNSIGNED): Remove. * system.h (WCHAR_UNSIGNED, MAX_CHAR_TYPE_SIZE): Poison. config: * freebsd.h, interix.h, alpha/freebsd.h, arm/freebsd.h, i386/386bsd.h, i386/beos-elf.h, i386/bsd386.h, i386/cygwin.h, i386/djgpp.h, i386/freebsd-aout.h, i386/i386-interix.h, i386/win32.h, ia64/freebsd.h, mips/netbsd.h, rs6000/freebsd.h, sh/elf.h, sh/sh.h, sparc/freebsd.h: Remove WCHAR_UNSIGNED. doc: * tm.texi: Remove MAX_CHAR_TYPE_SIZE. From-SVN: r53271
Diffstat (limited to 'gcc/config')
-rw-r--r--gcc/config/alpha/freebsd.h3
-rw-r--r--gcc/config/arm/freebsd.h3
-rw-r--r--gcc/config/freebsd.h3
-rw-r--r--gcc/config/i386/386bsd.h2
-rw-r--r--gcc/config/i386/beos-elf.h3
-rw-r--r--gcc/config/i386/bsd386.h3
-rw-r--r--gcc/config/i386/cygwin.h1
-rw-r--r--gcc/config/i386/djgpp.h3
-rw-r--r--gcc/config/i386/freebsd-aout.h2
-rw-r--r--gcc/config/i386/i386-interix.h1
-rw-r--r--gcc/config/i386/win32.h1
-rw-r--r--gcc/config/ia64/freebsd.h3
-rw-r--r--gcc/config/interix.h1
-rw-r--r--gcc/config/mips/netbsd.h3
-rw-r--r--gcc/config/rs6000/freebsd.h3
-rw-r--r--gcc/config/sh/elf.h3
-rw-r--r--gcc/config/sh/sh.h1
-rw-r--r--gcc/config/sparc/freebsd.h3
18 files changed, 0 insertions, 42 deletions
diff --git a/gcc/config/alpha/freebsd.h b/gcc/config/alpha/freebsd.h
index a8ace30..c5b8fc8 100644
--- a/gcc/config/alpha/freebsd.h
+++ b/gcc/config/alpha/freebsd.h
@@ -53,9 +53,6 @@ Boston, MA 02111-1307, USA. */
/* alpha.h gets this wrong for FreeBSD. We use the GCC defaults instead. */
#undef WCHAR_TYPE
-#undef WCHAR_UNSIGNED
-#define WCHAR_UNSIGNED 0
-
#undef WCHAR_TYPE_SIZE
#define WCHAR_TYPE_SIZE 32
diff --git a/gcc/config/arm/freebsd.h b/gcc/config/arm/freebsd.h
index a9b268c..0d417a2 100644
--- a/gcc/config/arm/freebsd.h
+++ b/gcc/config/arm/freebsd.h
@@ -41,9 +41,6 @@ Boston, MA 02111-1307, USA. */
/* We use the GCC defaults here. */
#undef WCHAR_TYPE
-#undef WCHAR_UNSIGNED
-#define WCHAR_UNSIGNED 0
-
#undef WCHAR_TYPE_SIZE
#define WCHAR_TYPE_SIZE 32
diff --git a/gcc/config/freebsd.h b/gcc/config/freebsd.h
index 97b20c5..99ee6ae 100644
--- a/gcc/config/freebsd.h
+++ b/gcc/config/freebsd.h
@@ -76,9 +76,6 @@ Boston, MA 02111-1307, USA. */
#undef WCHAR_TYPE
#define WCHAR_TYPE "int"
-#undef WCHAR_UNSIGNED
-#define WCHAR_UNSIGNED 0
-
#define MATH_LIBRARY_PROFILE "-lm_p"
/* Code generation parameters. */
diff --git a/gcc/config/i386/386bsd.h b/gcc/config/i386/386bsd.h
index e3bd081..9745530 100644
--- a/gcc/config/i386/386bsd.h
+++ b/gcc/config/i386/386bsd.h
@@ -17,8 +17,6 @@
#undef WCHAR_TYPE
#define WCHAR_TYPE "short unsigned int"
-#define WCHAR_UNSIGNED 1
-
#undef WCHAR_TYPE_SIZE
#define WCHAR_TYPE_SIZE 16
diff --git a/gcc/config/i386/beos-elf.h b/gcc/config/i386/beos-elf.h
index 208e274..5b1d1d3 100644
--- a/gcc/config/i386/beos-elf.h
+++ b/gcc/config/i386/beos-elf.h
@@ -65,9 +65,6 @@ Boston, MA 02111-1307, USA. */
#undef WCHAR_TYPE
#define WCHAR_TYPE "short unsigned int"
-#undef WCHAR_UNSIGNED
-#define WCHAR_UNSIGNED 1
-
#undef WCHAR_TYPE_SIZE
#define WCHAR_TYPE_SIZE 16
diff --git a/gcc/config/i386/bsd386.h b/gcc/config/i386/bsd386.h
index fb243275..eda80d2 100644
--- a/gcc/config/i386/bsd386.h
+++ b/gcc/config/i386/bsd386.h
@@ -10,9 +10,6 @@
#undef WCHAR_TYPE
#define WCHAR_TYPE "int"
-#undef WCHAR_UNSIGNED
-#define WCHAR_UNSIGNED 0
-
#undef WCHAR_TYPE_SIZE
#define WCHAR_TYPE_SIZE 32
diff --git a/gcc/config/i386/cygwin.h b/gcc/config/i386/cygwin.h
index efdb70e..09d4e69 100644
--- a/gcc/config/i386/cygwin.h
+++ b/gcc/config/i386/cygwin.h
@@ -171,7 +171,6 @@ Boston, MA 02111-1307, USA. */
#define SIZE_TYPE "unsigned int"
#define PTRDIFF_TYPE "int"
-#define WCHAR_UNSIGNED 1
#define WCHAR_TYPE_SIZE 16
#define WCHAR_TYPE "short unsigned int"
diff --git a/gcc/config/i386/djgpp.h b/gcc/config/i386/djgpp.h
index 240877c..6e53e51 100644
--- a/gcc/config/i386/djgpp.h
+++ b/gcc/config/i386/djgpp.h
@@ -159,9 +159,6 @@ Boston, MA 02111-1307, USA. */
/* Definitions for types and sizes. Wide characters are 16-bits long so
Win32 compiler add-ons will be wide character compatible. */
-#undef WCHAR_UNSIGNED
-#define WCHAR_UNSIGNED 1
-
#undef WCHAR_TYPE_SIZE
#define WCHAR_TYPE_SIZE 16
diff --git a/gcc/config/i386/freebsd-aout.h b/gcc/config/i386/freebsd-aout.h
index 7b1d96a..7f8a4fe 100644
--- a/gcc/config/i386/freebsd-aout.h
+++ b/gcc/config/i386/freebsd-aout.h
@@ -53,8 +53,6 @@ Boston, MA 02111-1307, USA. */
#undef WCHAR_TYPE
#define WCHAR_TYPE "int"
-#define WCHAR_UNSIGNED 0
-
#undef WCHAR_TYPE_SIZE
#define WCHAR_TYPE_SIZE BITS_PER_WORD
diff --git a/gcc/config/i386/i386-interix.h b/gcc/config/i386/i386-interix.h
index 40fc36e..1043c5f 100644
--- a/gcc/config/i386/i386-interix.h
+++ b/gcc/config/i386/i386-interix.h
@@ -44,7 +44,6 @@ Boston, MA 02111-1307, USA. */
#undef TARGET_CPU_DEFAULT
#define TARGET_CPU_DEFAULT 2 /* 486 */
-#define WCHAR_UNSIGNED 1
#define WCHAR_TYPE_SIZE 16
#define WCHAR_TYPE "short unsigned int"
diff --git a/gcc/config/i386/win32.h b/gcc/config/i386/win32.h
index f6f3214..561118b 100644
--- a/gcc/config/i386/win32.h
+++ b/gcc/config/i386/win32.h
@@ -95,7 +95,6 @@ Boston, MA 02111-1307, USA. */
#define SIZE_TYPE "unsigned int"
#define PTRDIFF_TYPE "int"
-#define WCHAR_UNSIGNED 1
#define WCHAR_TYPE_SIZE 16
#define WCHAR_TYPE "short unsigned int"
/* Currently we do not have the atexit() function,
diff --git a/gcc/config/ia64/freebsd.h b/gcc/config/ia64/freebsd.h
index 57bb391..34dc885 100644
--- a/gcc/config/ia64/freebsd.h
+++ b/gcc/config/ia64/freebsd.h
@@ -42,9 +42,6 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
We use the GCC defaults instead. */
#undef WCHAR_TYPE
-#undef WCHAR_UNSIGNED
-#define WCHAR_UNSIGNED 0
-
#undef WCHAR_TYPE_SIZE
#define WCHAR_TYPE_SIZE 32
diff --git a/gcc/config/interix.h b/gcc/config/interix.h
index 778c9ae..9100e01 100644
--- a/gcc/config/interix.h
+++ b/gcc/config/interix.h
@@ -100,7 +100,6 @@ for windows/multi thread */
#undef WCHAR_TYPE
#undef WCHAR_TYPE_SIZE
-#define WCHAR_UNSIGNED 1
#define WCHAR_TYPE "short unsigned int"
#define WCHAR_TYPE_SIZE 16
diff --git a/gcc/config/mips/netbsd.h b/gcc/config/mips/netbsd.h
index 95d3901..c625b9d 100644
--- a/gcc/config/mips/netbsd.h
+++ b/gcc/config/mips/netbsd.h
@@ -185,9 +185,6 @@ Boston, MA 02111-1307, USA. */
#undef WCHAR_TYPE
#define WCHAR_TYPE "int"
-#undef WCHAR_UNSIGNED
-#define WCHAR_UNSIGNED 0
-
#undef WCHAR_TYPE_SIZE
#define WCHAR_TYPE_SIZE 32
diff --git a/gcc/config/rs6000/freebsd.h b/gcc/config/rs6000/freebsd.h
index e4b9fc5..e4b6482 100644
--- a/gcc/config/rs6000/freebsd.h
+++ b/gcc/config/rs6000/freebsd.h
@@ -48,9 +48,6 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
/* rs6000.h gets this wrong for FreeBSD. We use the GCC defaults instead. */
#undef WCHAR_TYPE
-#undef WCHAR_UNSIGNED
-#define WCHAR_UNSIGNED 0
-
#undef WCHAR_TYPE_SIZE
#define WCHAR_TYPE_SIZE 32
diff --git a/gcc/config/sh/elf.h b/gcc/config/sh/elf.h
index 246a2ff..716f494 100644
--- a/gcc/config/sh/elf.h
+++ b/gcc/config/sh/elf.h
@@ -30,9 +30,6 @@ Boston, MA 02111-1307, USA. */
#undef SIZE_TYPE
#undef PTRDIFF_TYPE
-/* And one that is defined in sh.h and should be undefined in svr4.h... */
-#undef WCHAR_UNSIGNED
-
/* Be ELF-like. */
/* TODO: convert includes to ${tm_file} list in config.gcc. */
#include "dbxelf.h"
diff --git a/gcc/config/sh/sh.h b/gcc/config/sh/sh.h
index 6694270..5a5094e 100644
--- a/gcc/config/sh/sh.h
+++ b/gcc/config/sh/sh.h
@@ -2522,7 +2522,6 @@ while (0)
#define WCHAR_TYPE "short unsigned int"
#define WCHAR_TYPE_SIZE 16
-#define WCHAR_UNSIGNED 1
#define SH_ELF_WCHAR_TYPE "long int"
diff --git a/gcc/config/sparc/freebsd.h b/gcc/config/sparc/freebsd.h
index d50de84..e966090 100644
--- a/gcc/config/sparc/freebsd.h
+++ b/gcc/config/sparc/freebsd.h
@@ -50,9 +50,6 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
We use the GCC defaults instead. */
#undef WCHAR_TYPE
-#undef WCHAR_UNSIGNED
-#define WCHAR_UNSIGNED 0
-
#undef WCHAR_TYPE_SIZE
#define WCHAR_TYPE_SIZE 32