summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--base/genarch.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/base/genarch.c b/base/genarch.c
index 68a17a7e0..4c8b69327 100644
--- a/base/genarch.c
+++ b/base/genarch.c
@@ -184,8 +184,15 @@ main(int argc, char *argv[])
#if defined (GS_MEMPTR_ALIGNMENT) && GS_MEMPTR_ALIGNMENT != 0
define_int(f, "ARCH_ALIGN_PTR_MOD", GS_MEMPTR_ALIGNMENT);
#else
+#if defined (sparc) || defined (__hpux)
+# ifndef __BIGGEST_ALIGNMENT__
+# define __BIGGEST_ALIGNMENT__ 8
+# endif
+ define_int(f, "ARCH_ALIGN_PTR_MOD", __BIGGEST_ALIGNMENT__);
+#else
define_int(f, "ARCH_ALIGN_PTR_MOD", OFFSET_IN(sp, p));
#endif
+#endif
define_int(f, "ARCH_ALIGN_FLOAT_MOD", OFFSET_IN(sf, f));
define_int(f, "ARCH_ALIGN_DOUBLE_MOD", OFFSET_IN(sd, d));