From: Stanislaw Halik Date: Wed, 17 Aug 2016 09:34:52 +0000 (+0200) Subject: 016-08-17 Stanislaw Halik X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9375d7d4238c832f951e11af326ad18ed39b7526;p=gcc.git 016-08-17 Stanislaw Halik PR target/66488 * config/i386/xm-mingw32.h (HOST_BITS_PER_PTR): Define if __x86_64__. From-SVN: r239525 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e2a592cf75f..a699411d347 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2016-08-17 Stanislaw Halik + + PR target/66488 + * config/i386/xm-mingw32.h (HOST_BITS_PER_PTR): Define if __x86_64__. + 2016-08-17 Richard Biener * tree-ssa.c: Include tree-cfg.h and tree-dfa.h. diff --git a/gcc/config/i386/xm-mingw32.h b/gcc/config/i386/xm-mingw32.h index 5561e00343e..db2a708efe9 100644 --- a/gcc/config/i386/xm-mingw32.h +++ b/gcc/config/i386/xm-mingw32.h @@ -38,3 +38,7 @@ along with GCC; see the file COPYING3. If not see #define HOST_LONG_LONG_FORMAT "I64" #endif +/* this is to prevent gcc-heap.c from assuming sizeof(long) == sizeof(intptr_t) */ +#ifdef __x86_64__ +# define HOST_BITS_PER_PTR 64 +#endif