cppdefault.h (WINT_TYPE): Define.

* 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
This commit is contained in:
Joseph Myers 2000-08-04 13:45:57 +01:00 committed by Joseph Myers
parent 5896d7940b
commit d677797245
4 changed files with 19 additions and 0 deletions

View 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> Fri Aug 4 06:53:46 2000 Clinton Popetz <cpopetz@cygnus.com>
* (mips_legitimate_address_p): Don't allow register+offset * (mips_legitimate_address_p): Don't allow register+offset

View File

@ -66,6 +66,12 @@ Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
#define WCHAR_TYPE "int" #define WCHAR_TYPE "int"
#endif #endif
/* The string value for __WINT_TYPE__. */
#ifndef WINT_TYPE
#define WINT_TYPE "unsigned int"
#endif
/* The string value for __USER_LABEL_PREFIX__ */ /* The string value for __USER_LABEL_PREFIX__ */
#ifndef USER_LABEL_PREFIX #ifndef USER_LABEL_PREFIX

View File

@ -531,6 +531,9 @@ static const struct builtin builtin_array[] =
#ifndef NO_BUILTIN_WCHAR_TYPE #ifndef NO_BUILTIN_WCHAR_TYPE
C("__WCHAR_TYPE__", WCHAR_TYPE), C("__WCHAR_TYPE__", WCHAR_TYPE),
#endif #endif
#ifndef NO_BUILTIN_WINT_TYPE
C("__WINT_TYPE__", WINT_TYPE),
#endif
/* Named operators known to the preprocessor. These cannot be #defined /* Named operators known to the preprocessor. These cannot be #defined
and always have their stated meaning. They are treated like normal and always have their stated meaning. They are treated like normal

View File

@ -4643,6 +4643,9 @@ initialize_builtins ()
#endif #endif
#ifndef NO_BUILTIN_WCHAR_TYPE #ifndef NO_BUILTIN_WCHAR_TYPE
install_value ("__WCHAR_TYPE__", WCHAR_TYPE); install_value ("__WCHAR_TYPE__", WCHAR_TYPE);
#endif
#ifndef NO_BUILTIN_WINT_TYPE
install_value ("__WINT_TYPE__", WINT_TYPE);
#endif #endif
install_value ("__REGISTER_PREFIX__", REGISTER_PREFIX); install_value ("__REGISTER_PREFIX__", REGISTER_PREFIX);
install_value ("__USER_LABEL_PREFIX__", user_label_prefix); install_value ("__USER_LABEL_PREFIX__", user_label_prefix);