aboutsummaryrefslogtreecommitdiff
path: root/gcc/hwint.h
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@adacore.com>2017-12-15 11:30:56 +0000
committerEric Botcazou <ebotcazou@gcc.gnu.org>2017-12-15 11:30:56 +0000
commitf5b39f907f7a2d53a9506fdeafb99078315531eb (patch)
treed3a60c3ccd8e9a20607fe169c396e18e46ae37a2 /gcc/hwint.h
parent25ea36594733d8f13be3f0982c9bfe58f51c6319 (diff)
downloadgcc-f5b39f907f7a2d53a9506fdeafb99078315531eb.zip
gcc-f5b39f907f7a2d53a9506fdeafb99078315531eb.tar.gz
gcc-f5b39f907f7a2d53a9506fdeafb99078315531eb.tar.bz2
re PR target/66488 (segfault on sizeof(long) < sizeof(void*) and large GCC memory usage)
2017-12-15 Eric Botcazou <ebotcazou@adacore.com> PR target/66488 * ggc-page.c (HOST_BITS_PER_PTR): Do not define here... * hwint.h (HOST_BITS_PER_PTR): ...but here instead. * config/i386/xm-mingw32.h (HOST_BITS_PER_PTR): Delete. From-SVN: r255687
Diffstat (limited to 'gcc/hwint.h')
-rw-r--r--gcc/hwint.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/hwint.h b/gcc/hwint.h
index 2a61e3c..e5fa33f 100644
--- a/gcc/hwint.h
+++ b/gcc/hwint.h
@@ -14,6 +14,7 @@
#define HOST_BITS_PER_SHORT (CHAR_BIT * SIZEOF_SHORT)
#define HOST_BITS_PER_INT (CHAR_BIT * SIZEOF_INT)
#define HOST_BITS_PER_LONG (CHAR_BIT * SIZEOF_LONG)
+#define HOST_BITS_PER_PTR (CHAR_BIT * SIZEOF_VOID_P)
/* The string that should be inserted into a printf style format to
indicate a "long" operand. */