summaryrefslogtreecommitdiffstats
path: root/src/H5detect.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/H5detect.c')
-rw-r--r--src/H5detect.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/H5detect.c b/src/H5detect.c
index 683b76b..8ee0fcc 100644
--- a/src/H5detect.c
+++ b/src/H5detect.c
@@ -898,6 +898,22 @@ main(void)
detected_t d[MAXDETECT];
int nd = 0;
+#if defined(HAVE_SETSYSINFO) && defined(SSI_NVPAIRS)
+#if defined(UAC_NOPRINT) && defined(UAC_SIGBUS)
+ /*
+ * Make sure unaligned access generates SIGBUS and doesn't print warning
+ * messages so that we can detect alignment constraints on the DEC Alpha.
+ */
+ int nvpairs[2];
+ nvpairs[0] = SSIN_UACPROC;
+ nvpairs[1] = UAC_NOPRINT | UAC_SIGBUS;
+ if (setsysinfo(SSI_NVPAIRS, nvpairs, 1, 0, 0)<0) {
+ fprintf(stderr, "H5detect: unable to turn off UAC handling: %s\n",
+ strerror(errno));
+ }
+#endif
+#endif
+
print_header();
DETECT_I(signed char, SCHAR, d[nd]); nd++;