Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/gpl3/gcc/dist/gcc Help the hack verifying malloc al...



details:   https://anonhg.NetBSD.org/src/rev/83e15d656958
branches:  trunk
changeset: 794410:83e15d656958
user:      martin <martin%NetBSD.org@localhost>
date:      Thu Mar 13 19:33:23 2014 +0000

description:
Help the hack verifying malloc alignment expectations and force the
word size definition on sh* to be a compile time constant. We do not
provide a single library supporting both variants, so we pick the
smaller alignment for now.

diffstat:

 external/gpl3/gcc/dist/gcc/tree-ssa-ccp.c |  4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diffs (14 lines):

diff -r 8e3967af71e4 -r 83e15d656958 external/gpl3/gcc/dist/gcc/tree-ssa-ccp.c
--- a/external/gpl3/gcc/dist/gcc/tree-ssa-ccp.c Thu Mar 13 18:14:13 2014 +0000
+++ b/external/gpl3/gcc/dist/gcc/tree-ssa-ccp.c Thu Mar 13 19:33:23 2014 +0000
@@ -2553,6 +2553,10 @@
 #ifdef _LP64
 #define        TARGET_64BIT    1
 #else
+#ifdef __sh__
+#undef UNITS_PER_WORD
+#define        UNITS_PER_WORD  4       /* original definition varies depending on cpu */
+#endif
 #define        TARGET_64BIT    0
 #endif
 



Home | Main Index | Thread Index | Old Index