Commit a7d0b2d8 by Danny Smith Committed by Danny Smith

re PR target/31965 (_INTEGRAL_MAX_BITS defined incorrectly)

	PR target/31965
	* config/i386/mingw32.h (_INTEGRAL_MAX_BITS): Define builtin as
	TYPE_PRECISION (intmax_type_node).

From-SVN: r124813
parent 05dace46
2007-05-17 Danny Smith <dannysmith@users.sourceforge.net>
PR target/31965
* config/i386/mingw32.h (_INTEGRAL_MAX_BITS): Define builtin as
TYPE_PRECISION (intmax_type_node).
2007-05-17 Steve Ellcey <sje@cup.hp.com> 2007-05-17 Steve Ellcey <sje@cup.hp.com>
PR target/31850 PR target/31850
......
...@@ -27,7 +27,8 @@ Boston, MA 02110-1301, USA. */ ...@@ -27,7 +27,8 @@ Boston, MA 02110-1301, USA. */
#define TARGET_VERSION fprintf (stderr," (x86 MinGW)"); #define TARGET_VERSION fprintf (stderr," (x86 MinGW)");
#endif #endif
/* See i386/crtdll.h for an alternative definition. */ /* See i386/crtdll.h for an alternative definition. _INTEGRAL_MAX_BITS
is for compatibility with native compiler. */
#define EXTRA_OS_CPP_BUILTINS() \ #define EXTRA_OS_CPP_BUILTINS() \
do \ do \
{ \ { \
...@@ -36,17 +37,14 @@ Boston, MA 02110-1301, USA. */ ...@@ -36,17 +37,14 @@ Boston, MA 02110-1301, USA. */
builtin_define ("_WIN32"); \ builtin_define ("_WIN32"); \
builtin_define_std ("WIN32"); \ builtin_define_std ("WIN32"); \
builtin_define_std ("WINNT"); \ builtin_define_std ("WINNT"); \
builtin_define_with_int_value ("_INTEGRAL_MAX_BITS", \
TYPE_PRECISION (intmax_type_node));\
if (TARGET_64BIT_MS_ABI) \ if (TARGET_64BIT_MS_ABI) \
{ \ { \
builtin_define ("__MINGW64__"); \ builtin_define ("__MINGW64__"); \
builtin_define_with_value("_INTEGRAL_MAX_BITS","64",0); \
builtin_define_std ("WIN64"); \ builtin_define_std ("WIN64"); \
builtin_define_std ("_WIN64"); \ builtin_define_std ("_WIN64"); \
} \ } \
else \
{ \
builtin_define_with_value("_INTEGRAL_MAX_BITS","32",0); \
} \
} \ } \
while (0) while (0)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment