1 /***********************************************************************/
5 /* Xavier Leroy, projet Cristal, INRIA Rocquencourt */
7 /* Copyright 2000 Institut National de Recherche en Informatique et */
8 /* en Automatique. All rights reserved. This file is distributed */
9 /* under the terms of the GNU Library General Public License, with */
10 /* the special exception on linking described in file ../../LICENSE. */
12 /***********************************************************************/
14 /* $Id: int64align.c 4144 2001-12-07 13:41:02Z xleroy $ */
23 void access_int64(ARCH_INT64_TYPE *p)
30 void sig_handler(int sig)
39 signal(SIGSEGV, sig_handler);
41 signal(SIGBUS, sig_handler);
43 if(setjmp(failure) == 0) {
44 access_int64((ARCH_INT64_TYPE *) n);
45 access_int64((ARCH_INT64_TYPE *) (n+1));
50 signal(SIGSEGV, SIG_DFL);
52 signal(SIGBUS, SIG_DFL);