20334734 several Python 3.4 tests trigger core dumps on sparc
authorJohn Beck <John.Beck@Oracle.COM>
Sat, 10 Jan 2015 08:18:26 -0800
changeset 3633 dc8489206e64
parent 3632 339b232f95a9
child 3636 ca7fe1fad4ea
20334734 several Python 3.4 tests trigger core dumps on sparc
components/python/python34/Makefile
--- a/components/python/python34/Makefile	Fri Jan 09 08:39:56 2015 -0800
+++ b/components/python/python34/Makefile	Sat Jan 10 08:18:26 2015 -0800
@@ -20,7 +20,7 @@
 #
 
 #
-# Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
 #
 
 include ../../../make-rules/shared-macros.mk
@@ -76,6 +76,9 @@
 # build pic
 CFLAGS +=	$(CC_PIC)
 
+# 16-byte memory alignment + interpretation of non-alignment prevents SIGBUS.
+studio_ALIGN.sparc.64 = -xmemalign=16i
+
 # The python build is profile-guided for studio; to see the benefits of that,
 # Python must be compiled with -xO5 and a different build target must be used.
 # Use of xprofile requires that the same options be used during compilation and