cppdefault.h (WINT_TYPE): Define.
authorJoseph Myers <jsm28@cam.ac.uk>
Fri, 4 Aug 2000 12:45:57 +0000 (13:45 +0100)
committerJoseph Myers <jsm28@gcc.gnu.org>
Fri, 4 Aug 2000 12:45:57 +0000 (13:45 +0100)
* cppdefault.h (WINT_TYPE): Define.
* cppinit.c (builtin_array): Define __WINT_TYPE__.
* tradcpp.c (initialize_builtins): Define __WINT_TYPE__.
* tm.texi (NO_BUILTIN_WINT_TYPE, WINT_TYPE): Document.

From-SVN: r35478

gcc/ChangeLog
gcc/cppdefault.h
gcc/cppinit.c
gcc/tradcpp.c

index 5c8f92062ee1ff08d923fc94701345ea1ca42be9..c1da777727b6be4bd9bf5b5f75a8a73c071ce58c 100644 (file)
@@ -1,3 +1,10 @@
+2000-08-04  Joseph S. Myers  <jsm28@cam.ac.uk>
+
+       * cppdefault.h (WINT_TYPE): Define.
+       * cppinit.c (builtin_array): Define __WINT_TYPE__.
+       * tradcpp.c (initialize_builtins): Define __WINT_TYPE__.
+       * tm.texi (NO_BUILTIN_WINT_TYPE, WINT_TYPE): Document.
+
 Fri Aug  4 06:53:46 2000  Clinton Popetz  <cpopetz@cygnus.com>
 
        * (mips_legitimate_address_p): Don't allow register+offset              
index 58ff9396460f894ad8e190979e4c0667dea6bd81..db7063cd662d758657971bd0ef51f1d2d3f9ffdf 100644 (file)
@@ -66,6 +66,12 @@ Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
 #define WCHAR_TYPE "int"
 #endif
 
+/* The string value for __WINT_TYPE__.  */
+
+#ifndef WINT_TYPE
+#define WINT_TYPE "unsigned int"
+#endif
+
 /* The string value for __USER_LABEL_PREFIX__ */
 
 #ifndef USER_LABEL_PREFIX
index 2499a90e1dc21b6e58f0982a53b897bba5d4e946..c845028d357094f5d8f5f5b3b91b72fe88239c18 100644 (file)
@@ -531,6 +531,9 @@ static const struct builtin builtin_array[] =
 #ifndef NO_BUILTIN_WCHAR_TYPE
   C("__WCHAR_TYPE__",          WCHAR_TYPE),
 #endif
+#ifndef NO_BUILTIN_WINT_TYPE
+  C("__WINT_TYPE__",           WINT_TYPE),
+#endif
 
   /* Named operators known to the preprocessor.  These cannot be #defined
      and always have their stated meaning.  They are treated like normal
index a66123631a3dd52b31e90d24acb438e16eaada88..5e88c02298932ea8b55946c384e04126c9a82ca1 100644 (file)
@@ -4643,6 +4643,9 @@ initialize_builtins ()
 #endif
 #ifndef NO_BUILTIN_WCHAR_TYPE
   install_value ("__WCHAR_TYPE__",        WCHAR_TYPE);
+#endif
+#ifndef NO_BUILTIN_WINT_TYPE
+  install_value ("__WINT_TYPE__",         WINT_TYPE);
 #endif
   install_value ("__REGISTER_PREFIX__",   REGISTER_PREFIX);
   install_value ("__USER_LABEL_PREFIX__", user_label_prefix);