diff options
author | Danny Smith <dannysmith@users.sourceforge.net> | 2007-05-17 22:51:05 +0000 |
---|---|---|
committer | Danny Smith <dannysmith@gcc.gnu.org> | 2007-05-17 22:51:05 +0000 |
commit | a7d0b2d809616b985d93c969de5fdf43fe1b8781 (patch) | |
tree | 3dcbf0ea8537048288b35c571efbd31cac624fec /gcc/config | |
parent | 05dace46934d6fcf58be44b47781b5a3d6050769 (diff) | |
download | gcc-a7d0b2d809616b985d93c969de5fdf43fe1b8781.zip gcc-a7d0b2d809616b985d93c969de5fdf43fe1b8781.tar.gz gcc-a7d0b2d809616b985d93c969de5fdf43fe1b8781.tar.bz2 |
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
Diffstat (limited to 'gcc/config')
-rw-r--r-- | gcc/config/i386/mingw32.h | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/gcc/config/i386/mingw32.h b/gcc/config/i386/mingw32.h index c608826..a39fbab 100644 --- a/gcc/config/i386/mingw32.h +++ b/gcc/config/i386/mingw32.h @@ -27,7 +27,8 @@ Boston, MA 02110-1301, USA. */ #define TARGET_VERSION fprintf (stderr," (x86 MinGW)"); #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() \ do \ { \ @@ -36,17 +37,14 @@ Boston, MA 02110-1301, USA. */ builtin_define ("_WIN32"); \ builtin_define_std ("WIN32"); \ builtin_define_std ("WINNT"); \ + builtin_define_with_int_value ("_INTEGRAL_MAX_BITS", \ + TYPE_PRECISION (intmax_type_node));\ if (TARGET_64BIT_MS_ABI) \ { \ builtin_define ("__MINGW64__"); \ - builtin_define_with_value("_INTEGRAL_MAX_BITS","64",0); \ builtin_define_std ("WIN64"); \ builtin_define_std ("_WIN64"); \ } \ - else \ - { \ - builtin_define_with_value("_INTEGRAL_MAX_BITS","32",0); \ - } \ } \ while (0) |