1 2010-11-06 Bruno Haible <bruno@clisp.org>
4 * autogen.sh: New option --skip-gnulib. Fetch gnulib if GNULIB_TOOL is
5 not set. Import m4/relocatable-lib.m4.
6 * configure.ac: Invoke gl_RELOCATABLE_NOP instead of
8 * m4/relocatable.m4: Remove file.
10 2010-11-06 Bruno Haible <bruno@clisp.org>
12 Modernize autoconf macro style.
13 * configure.ac: Surround all macro arguments in brackets.
14 * m4/getpagesize.m4: Likewise.
15 * m4/mmap-anon.m4: Likewise.
16 * m4/sigaltstack.m4: Likewise.
18 2010-11-06 Bruno Haible <bruno@clisp.org>
20 Don't list files in .gitignore that are absent after "make distclean".
21 * .gitignore: Complete the list of files that are created by "make" and
22 removed by "make distclean". But comment them out, since they belong in
23 .git/info/exclude. Also remove /autom4te.cache because "make distclean"
26 2010-10-25 Eric Blake <eblake@redhat.com>
28 Fix powerpc64-unknown-linux-gnu implementation.
29 * src/stackvma-rofile.c (struct rofile): Reduce size, to avoid
30 overflowing alternate stack when compiled under -O2.
31 * src/stackvma-mincore.c (mapped_range_start, mapped_range_end):
33 * NEWS: Document the fix.
35 2010-10-24 Eric Blake <eblake@redhat.com>
36 Bruno Haible <bruno@clisp.org>
38 Enhance the tests to detect overflow of the alternate stack.
39 * tests/altstack.h: New file.
40 * tests/Makefile.am (EXTRA_DIST): Add altstack.h.
41 * configure.ac: Invoke AC_TYPE_UINTPTR_T.
42 * tests/stackoverflow1.c: Include altstack.h.
43 (SIGSTKSZ): Remove definition.
44 (mystack): Remove definition.
45 (main): Invoke prepare_alternate_stack and
46 check_alternate_stack_no_overflow.
47 * tests/stackoverflow2.c: Likewise.
48 * tests/efault2.c: Likewise.
49 * tests/efault3.c: Likewise.
51 2010-10-21 Eric Blake <eblake@redhat.com>
53 * .gitignore: Ignore more files.
55 2010-09-23 Bruno Haible <bruno@clisp.org>
57 * m4/libtool.m4: Update from libtool-2.4.
58 * m4/ltversion.m4: Likewise.
59 * build-aux/ltmain.sh: Likewise.
61 2010-06-04 Bruno Haible <bruno@clisp.org>
63 * m4/libtool.m4: Update from libtool-2.2.8.
64 * m4/ltoptions.m4: Likewise.
65 * m4/ltversion.m4: Likewise.
66 * m4/lt~obsolete.m4: Likewise.
67 * build-aux/ltmain.sh: Likewise.
69 2010-04-06 Eric Blake <eblake@redhat.com>
71 * AUTHORS: Add myself.
73 2010-03-30 Bruno Haible <bruno@clisp.org>
75 * README.woe32: Update for Cygwin 1.7.x.
77 2010-02-18 Bruno Haible <bruno@clisp.org>
79 Fix 64-bit builds with --enable-shared on MacOS X.
80 * src/stackvma-mach.c (sigsegv_get_vma): On 64-bit MacOS X, use
81 vm_region_64 instead of vm_region.
82 * NEWS: Mention the fix.
83 Reported by Rudá Moura <ruda@rudix.org>.
85 2010-01-31 Bruno Haible <bruno@clisp.org>
87 * README: Add more homepage links. Add bug report address.
89 2010-01-07 Bruno Haible <bruno@clisp.org>
91 Improve support for OpenBSD.
92 * src/fault-openbsd-i386.h (SIGSEGV_FAULT_STACKPOINTER): Define
93 differently in 64-bit mode.
94 * src/fault-openbsd-alpha.h: New file.
95 * src/fault-openbsd-arm.h: New file.
96 * src/fault-openbsd-hppa.h: New file.
97 * src/fault-openbsd-m68k.h: New file.
98 * src/fault-openbsd-m88k.h: New file.
99 * src/fault-openbsd-mips.h: New file.
100 * src/fault-openbsd-powerpc.h: New file.
101 * src/fault-openbsd-sh.h: New file.
102 * src/fault-openbsd-sparc.h: New file.
103 * src/fault-openbsd-vax.h: New file.
104 * src/Makefile.am (noinst_HEADERS): Add the new files.
105 * configure.ac (CFG_FAULT): Use these files on OpenBSD.
106 Reported by Paul Irofti <bulibuta@sdf.lonestar.org>.
108 2009-12-11 Bruno Haible <bruno@clisp.org>
110 * Version 2.8 released.
112 2009-12-11 Bruno Haible <bruno@clisp.org>
114 * configure.ac: Bump version number to 2.8.
115 * src/sigsegv.h.in (LIBSIGSEGV_VERSION): Likewise.
117 * src/Makefile.am (LIBSIGSEGV_VERSION_INFO): Bump to 2:1:0.
119 2009-12-11 Bruno Haible <bruno@clisp.org>
121 Remove configuration option --enable-EFAULT.
122 * configure.ac (enable_EFAULT): Set to yes on Cygwin, to no otherwise.
123 * README, NEWS: Don't mention --enable-EFAULT.
124 Reported by Eric Blake.
126 2009-12-11 Bruno Haible <bruno@clisp.org>
129 * tests/cygwin1.c: New file, based on code by Eric Blake.
130 * tests/Makefile.am (TESTS, noinst_PROGRAMS): Add it.
131 * configure.ac (CYGWIN): New conditional.
133 2009-11-21 Eric Blake <ebb9@byu.net>
134 Bruno Haible <bruno@clisp.org>
136 New configuration option --enable-EFAULT.
137 * configure.ac: Accept option --enable-EFAULT. Set and define
138 ENABLE_EFAULT. Invoke SV_SYSCALLS_EFAULT.
139 For Cygwin, use the CFG_FAULT that was already determined, or
140 fault-cygwin-old.h if none. In the latter case, define
141 OLD_CYGWIN_WORKAROUND.
142 * m4/efault.m4: New file.
143 * src/handler-win32.c [CYGWIN && ENABLE_EFAULT]: Include
145 (MIXING_UNIX_SIGSEGV_AND_WIN32_STACKOVERFLOW_HANDLING): New macro.
146 (last_seen_fault_address): New variable.
147 (main_exception_filter): Store the fault address for the Unix signal
149 (sigsegv_install_handler): Redefine.
150 (sigsegv_deinstall_handler, sigsegv_leave_handler): Don't define.
151 * src/handler-unix.c (stackoverflow_install_handler,
152 stackoverflow_deinstall_handler): Don't define if
153 MIXING_UNIX_SIGSEGV_AND_WIN32_STACKOVERFLOW_HANDLING is set.
154 * src/fault-cygwin-old.h: New file.
155 * src/Makefile.am (noinst_HEADERS): Add it.
156 * tests/efault1.c: New file.
157 * tests/efault2.c: New file.
158 * tests/efault3.c: New file.
159 * tests/Makefile.am (TESTS, noinst_PROGRAMS): Add efault1, efault2,
161 * README, NEWS: Mention the new option.
163 2009-11-21 Bruno Haible <bruno@clisp.org>
165 Support for Cygwin 1.7.
166 * configure.ac: For Cygwin and mingw, choose FAULT_CONTEXT in a way
167 that is consistent with CFD_HANDLER.
168 Reported by Eric Blake <ebb9@byu.net>
170 2009-11-21 Bruno Haible <bruno@clisp.org>
172 * configure.ac: Add comments and structure.
174 2009-11-21 Bruno Haible <bruno@clisp.org>
176 Reduce size of configure.ac.
177 * m4/stack-direction.m4: New file, extracted from configure.ac.
178 * configure.ac: Simply invoke SV_STACK_DIRECTION.
180 2009-11-21 Eric Blake <ebb9@byu.net>
181 Bruno Haible <bruno@clisp.org>
184 * src/handler-win32.c (debug_get_except_list): Mark as unused.
186 2009-11-21 Bruno Haible <bruno@clisp.org>
188 Fix compilation error on newer versions of HP-UX 11.31 on ia64.
189 * configure.ac: Set sv_cv_have_stack_overflow_recovery to 'no' if it is
190 not possible to longjmp out of the signal handler. On HP-UX 11.31 on
191 ia64 it is only possible with siglongjmp (as far as we know).
192 Reported by Bill Glessner <bill.glessner@cwu.edu>.
194 * configure.ac: Move determination of CFG_LEAVE before the
195 determination of sv_cv_have_stack_overflow_recovery.
197 2009-10-17 Bruno Haible <bruno@clisp.org>
199 * README: Mention danger of longjmping back to a central point.
200 Reported by Angelo Borsotti <angelo.borsotti@gmail.com>.
202 2009-09-22 Paolo Bonzini <bonzini@gnu.org>
204 Move more declarations of alternate stacks to global scope.
205 * m4/sigaltstack-longjmp.m4: Make mystack global.
206 * m4/sigaltstack-siglongjmp.m4: Make mystack global.
207 * m4/sigaltstack.m4: Make mystack global.
209 2009-09-22 Paolo Bonzini <bonzini@gnu.org>
211 Fix crash of stackoverflow2 on x86_64-linux.
212 * tests/stackoverflow1.c: Make mystack global.
213 * tests/stackoverflow2.c: Likewise.
214 * src/sigsegv.h.in: Warn against placing the alternate stack
217 2009-08-16 Bruno Haible <bruno@clisp.org>
219 Avoid a gcc warning on Solaris.
220 * src/stackvma-procfs.c: Include <string.h>.
222 2009-08-14 Bruno Haible <bruno@clisp.org>
224 Remove config.guess, config.sub from from version control.
225 * autogen.sh: Fetch config.guess, config.sub.
226 * build-aux/config.guess: Remove file.
227 * build-aux/config.sub: Remove file.
229 2009-08-14 Bruno Haible <bruno@clisp.org>
231 Remove autogenerated files from version control.
232 * autogen.sh: New file.
233 * aclocal.m4: Remove file.
234 * configure: Remove file.
235 * config.h.in: Remove file.
236 * Makefile.in: Remove file.
237 * src/Makefile.in: Remove file.
238 * tests/Makefile.in: Remove file.
239 * build-aux/install-sh: Remove file.
240 * build-aux/missing: Remove file.
241 * config.h.msvc: Remove file.
242 * src/sigsegv.h.msvc: Remove file.
244 2009-08-14 Bruno Haible <bruno@clisp.org>
246 Override automake's tar command used for creating distributions.
247 * configure.ac (am__tar): New variable.
249 2009-08-09 Bruno Haible <bruno@clisp.org>
251 * Version 2.7 released.
253 2009-08-09 Bruno Haible <bruno@clisp.org>
255 * configure.ac: Bump version number to 2.7.
256 * src/sigsegv.h.in (LIBSIGSEGV_VERSION): Likewise.
257 * src/Makefile.am (LIBSIGSEGV_VERSION_INFO): Bump to 2:0:0.
259 2009-08-09 Bruno Haible <bruno@clisp.org>
261 * src/fault-linux-powerpc.h (SIGSEGV_FAULT_STACKPOINTER): Fix mistake.
263 2009-08-09 Bruno Haible <bruno@clisp.org>
265 Avoid warnings on glibc systems.
266 * src/stackvma-mincore.c (pageinfo_t): New type.
267 (is_mapped, mapped_range_start, mapped_range_end): Use it.
269 2009-08-01 Bruno Haible <bruno@clisp.org>
271 Prefer the POSIX way over the traditional one, on Linux.
272 * configure.ac: Use the traditional Linux way only if the POSIX way
274 * NEWS: Mention the change.
276 2009-08-01 Bruno Haible <bruno@clisp.org>
278 Add knowledge where to find the stack pointer on Linux platforms.
279 * src/fault-linux-alpha.h: New file.
280 * src/fault-linux-arm.h: New file.
281 * src/fault-linux-cris.h: New file.
282 * src/fault-linux-hppa.h: New file.
283 * src/fault-linux-i386.h: New file.
284 * src/fault-linux-ia64.h: New file.
285 * src/fault-linux-m68k.h: New file.
286 * src/fault-linux-mips.h: New file.
287 * src/fault-linux-powerpc.h: New file.
288 * src/fault-linux-s390.h: New file.
289 * src/fault-linux-sh.h: New file.
290 * src/fault-linux-sparc.h: New file.
291 * src/Makefile.am (noinst_HEADERS): Add them.
292 * src/handler-unix.c (_GNU_SOURCE): Define.
293 * src/fault-linux-hppa-old.h: Add alternative code, commented.
294 * src/fault-linux-sparc-old.h: Likewise.
295 * configure.ac (CFG_FAULT): Use these files on Linux when the POSIX way
296 of catching page faults works.
298 2009-08-01 Bruno Haible <bruno@clisp.org>
300 * src/fault-linux-i386-old.h: Renamed from src/fault-linux-i386.h.
301 * src/Makefile.am (noinst_HEADERS): Update.
302 * configure.ac: Update.
304 * src/fault-linux-i386-oldold.h: Renamed from
305 src/fault-linux-i386-old.h.
306 * src/Makefile.am (noinst_HEADERS): Update.
307 * configure.ac: Update.
309 * src/fault-linux-alpha-old.h: Renamed from src/fault-linux-alpha.h.
310 * src/fault-linux-arm-old.h: Renamed from src/fault-linux-arm.h.
311 * src/fault-linux-cris-old.h: Renamed from src/fault-linux-cris.h.
312 * src/fault-linux-hppa-old.h: Renamed from src/fault-linux-hppa.h.
313 * src/fault-linux-ia64-old.h: Renamed from src/fault-linux-ia64.h.
314 * src/fault-linux-m68k-old.c: Renamed from src/fault-linux-m68k.c.
315 * src/fault-linux-m68k-old.h: Renamed from src/fault-linux-m68k.h.
317 * src/fault-linux-mips-old.h: Renamed from src/fault-linux-mips.h.
318 * src/fault-linux-powerpc-old.h: Renamed from src/fault-linux-powerpc.h.
319 * src/fault-linux-s390-old.h: Renamed from src/fault-linux-s390.h.
320 * src/fault-linux-sh-old.h: Renamed from src/fault-linux-sh.h.
321 * src/fault-linux-sparc-old.h: Renamed from src/fault-linux-sparc.h.
322 * src/fault-linux-x86_64-old.h: Renamed from src/fault-linux-x86_64.h.
323 * src/Makefile.am (noinst_HEADERS): Update.
324 * configure.ac: Update.
326 2009-06-23 Bruno Haible <bruno@clisp.org>
328 * Makefile.am (check-next): No longer ask for copies of config.log.
330 2009-06-23 Bruno Haible <bruno@clisp.org>
332 Improve support for MirBSD 10.
333 * configure.ac (CFG_FAULT, FAULT_CONTEXT): Treat MirBSD/i386 like
336 2009-06-23 Bruno Haible <bruno@clisp.org>
338 Add support for platforms that follow POSIX:2008, not POSIX:2001.
339 * configure.ac (POSIX): Add MirBSD to known list.
340 (CFG_FAULT, FAULT_CONTEXT, FAULT_CONTEXT_INCLUDE): Define appropriately
341 when <ucontext.h> does not exist.
342 * src/fault-posix-ucontext.h: Renamed from src/fault-posix.h.
343 * src/fault-posix.h: New file.
344 * src/fault-aix5.h: Update.
345 * src/fault-hpux-hppa.h: Update.
346 * src/fault-netbsd.h: Update.
347 * src/fault-solaris.h: Update.
348 * src/Makefile.am (noinst_HEADERS): Add fault-posix-ucontext.h.
350 2009-06-23 Bruno Haible <bruno@clisp.org>
352 * configure.ac (FAULT_CONTEXT_INCLUDE): Reinstall the AC_SUBST
355 2009-05-21 Bruno Haible <bruno@clisp.org>
357 * configure.ac (FAULT_CONTEXT_INCLUDE): Don't substitute into
360 2009-05-21 Bruno Haible <bruno@clisp.org>
362 * tests/Makefile.am (AUTOMAKE_OPTIONS): Assume automake >= 1.11.
363 Use color-tests option.
365 2009-01-14 Bruno Haible <bruno@clisp.org>
367 * configure.ac: More consistent m4 quoting.
369 2008-09-27 Bruno Haible <bruno@clisp.org>
371 * build-aux/config.sub: Update to GNU version 2008-09-08.
373 2008-09-23 Eric Blake <ebb9@byu.net>
375 Use 2 * SIGSTKSZ consistently in configuration checks.
376 * m4/sigaltstack.m4 (SV_SIGALTSTACK): Work around IRIX sigaltstack bug.
377 * m4/sigaltstack-longjmp.m4 (SV_TRY_LEAVE_HANDLER_LONGJMP): Likewise.
378 * m4/sigaltstack-siglongjmp.m4 (SV_TRY_LEAVE_HANDLER_SIGLONGJMP):
381 2008-09-21 Bruno Haible <bruno@clisp.org>
383 * src/Makefile.am (LIBSIGSEGV_VERSION_INFO): New variable.
384 (libsigsegv_la_LDFLAGS): Pass -rpath and -version-info option.
385 Reported by Thomas Klausner <tk@giga.or.at>.
387 2008-09-21 Eric Blake <ebb9@byu.net>
388 Bruno Haible <bruno@clisp.org>
390 Detect and work around bug in Irix 5.3 sigaltstack.
391 * m4/sigaltstack.m4 (SV_SIGALTSTACK): Test for broken stack_t direction
393 * src/handler-unix.c (stackoverflow_install_handler): Adjust stack
395 * tests/stackoverflow1.c (stack_lower_bound, stack_upper_bound): New
397 (stackoverflow_handler): Use them to expose IRIX bug.
398 (main): Initialize them.
400 2008-09-07 Bruno Haible <bruno@clisp.org>
402 * m4/libtool.m4: Update from libtool-2.2.6.
403 * m4/ltoptions.m4: Likewise.
404 * m4/ltsugar.m4: Likewise.
405 * m4/ltversion.m4: Likewise.
406 * build-aux/ltmain.sh: Likewise.
408 2008-08-25 Bruno Haible <bruno@clisp.org>
410 * Version 2.6 released.
412 2008-08-24 Bruno Haible <bruno@clisp.org>
414 * configure.ac: Treat Dragonfly BSD platforms like FreeBSD.
415 Reported by Thomas Klausner <tk@giga.or.at>.
417 2008-08-24 Bruno Haible <bruno@clisp.org>
419 * src/stackvma-mincore.c (mincore_is_near_this): Improve logic. Needed
420 for reliable NULL pointer access classification as SIGSEGV on AIX 4.3.
422 2008-08-24 Bruno Haible <bruno@clisp.org>
424 * m4/sigaltstack.m4: Change 'volatile int' return type to 'int'. Needed
426 * m4/sigaltstack-longjmp.m4: Likewise.
427 * m4/sigaltstack-siglongjmp.m4: Likewise.
428 * tests/stackoverflow1.c (recurse): Likewise.
429 * tests/stackoverflow2.c (recurse): Likewise.
431 2008-08-24 Bruno Haible <bruno@clisp.org>
433 * tests/sigsegv1.c: Include <config.h>.
434 * tests/sigsegv2.c: Likewise.
435 * tests/sigsegv3.c: Include <config.h> before all other headers.
436 * tests/stackoverflow1.c: Likewise.
437 * tests/stackoverflow2.c: Likewise.
439 2008-08-24 Bruno Haible <bruno@clisp.org>
441 Fix the sigsegv3 test on MacOS X.
442 * src/sigsegv.h.in (sigsegv_leave_handler): Take 4 arguments.
443 * NEWS: Mention the change.
444 * src/handler-macos.c (our_exception_thread, signalled_thread): New
446 (catch_exception_raise): Set signalled_thread during the user_handler
448 (mach_exception_thread): Initialize our_exception_thread.
449 (sigsegv_leave_handler): Take 4 arguments. When called from within
450 the exception thread, let the signalled thread do a hyperjump.
451 * src/handler-unix.c (sigsegv_leave_handler): Take 4 arguments.
452 * src/handler-win32.c (sigsegv_leave_handler): Likewise.
453 * src/handler-none.c (sigsegv_leave_handler): Likewise.
454 * src/machfault-macos.h (SIGSEGV_INTEGER_ARGUMENT_1,
455 SIGSEGV_INTEGER_ARGUMENT_2, SIGSEGV_INTEGER_ARGUMENT_3,
456 SIGSEGV_FRAME_POINTER): New macros.
457 * tests/sigsegv3.c (handler_continuation): New function.
458 (handler): Update to new API.
459 * tests/stackoverflow1.c (stackoverflow_handler_continuation): New
461 (stackoverflow_handler): Update to new API.
462 * tests/stackoverflow2.c (stackoverflow_handler_continuation): New
464 (stackoverflow_handler, sigsegv_handler): Update to new API.
466 2008-08-24 Bruno Haible <bruno@clisp.org>
468 Test the use of sigsegv_leave_handler from within a SIGSEGV handler.
469 * tests/sigsegv3.c: New file.
470 * tests/Makefile.am (TESTS, noinst_PROGRAMS): Add sigsegv3.
472 2008-08-23 Eric Blake <ebb9@byu.net>
474 * src/Makefile.am (noinst_HEADERS): Remove machfault-macos-powerpc.h
475 and machfault-macos-i386.h. Add machfault-macos.h.
477 2008-08-17 Bruno Haible <bruno@clisp.org>
479 Allow building universal binaries on MacOS X.
480 * src/machfault-macos.h: New file, combining
481 src/machfault-macos-powerpc.h and src/machfault-macos-i386.h.
482 * src/machfault-macos-powerpc.h: Remove file.
483 * src/machfault-macos-i386.h: Remove file.
484 * configure.ac (CFG_MACHFAULT): Set to machfault-macos.h.
485 (FAULT_CONTEXT_INCLUDE) [MacOSX]: Set to #ifdefs for all four possible
488 2008-07-20 Bruno Haible <bruno@clisp.org>
490 Make sigsegv_get_vma async-safe.
491 * src/sigsegv.h.in (sigsegv_handler_t, stackoverflow_handler_t):
492 Mention async-safety constraints.
493 + src/stackvma-rofile.c: New file.
494 * src/stackvma-freebsd.c: Include stackvma-rofile.c.
495 (sigsegv_get_vma): Use struct rofile instead of FILE.
496 * src/stackvma-linux.c: Include stackvma-rofile.c.
497 (sigsegv_get_vma): Use struct rofile instead of FILE.
498 * src/stackvma-procfs.c: Include <sys/mman.h> instead of <stdlib.h> and
500 (sigsegv_get_vma): Avoid using sprintf. Ensure pagesize is initialized.
501 Use mmap/munmap instead of malloc/free.
502 * src/Makefile.am (EXTRA_DIST): Add stackvma-rofile.c.
503 Reported by Eric Blake <ebb9@byu.net>.
505 2008-07-20 Bruno Haible <bruno@clisp.org>
507 * src/handler-unix.c (sigsegv_handler): Preserve errno.
509 2008-07-20 Eric Blake <ebb9@byu.net>
511 * src/stackvma-mincore.c (mincore_is_near_this): Fix logic.
513 2008-07-20 Bruno Haible <bruno@clisp.org>
515 * tests/stackoverflow2.c (main): Test also a NULL pointer access.
516 Reported by Eric Blake <ebb9@byu.net>.
518 2008-06-23 Bruno Haible <bruno@clisp.org>
520 * build-aux/config.guess: Update to GNU version 2008-06-16.
521 * build-aux/config.sub: Likewise.
523 2008-05-31 Bruno Haible <bruno@clisp.org>
525 Make cross-compile from MacOS X 10.5 to MacOS X 10.4 work.
526 * src/handler-macos.c (MacOS_X_10_5_HEADERS): New macro.
527 * src/machfault-macos-i386.h: Use it.
528 * src/machfault-macos-powerpc.h: Likewise.
529 Reported by Dr Tomaž Slivnik <slivnik@tomaz.name>.
531 2008-05-31 Bruno Haible <bruno@clisp.org>
533 * m4/mmap-anon.m4 (SV_MMAP_ANON): Add known cross-compile results for
535 Reported by Dr Tomaž Slivnik <slivnik@tomaz.name>.
537 2008-05-27 Bruno Haible <bruno@clisp.org>
539 * configure.ac: Require at least autoconf 2.62. Merge
540 FAULT_CONTEXT_INCLUDE2 variable into FAULT_CONTEXT_INCLUDE.
541 * src/sigsegv.h.in: Remove FAULT_CONTEXT_INCLUDE2 substitution.
542 * src/Makefile.am (sigsegv.h.msvc): Update.
544 2008-05-27 Bruno Haible <bruno@clisp.org>
546 * configure.ac: Bump version number to 2.6.
547 * src/sigsegv.h.in (LIBSIGSEGV_VERSION): Likewise.
549 2008-05-27 Bruno Haible <bruno@clisp.org>
551 Support for 64-bit mode on MacOS X 10.5.
552 * src/handler-macos.c (catch_exception_raise): Align the stack pointer
553 also on x86_64. Needed for MMX instructions.
554 * src/machfault-macos-i386.h: Choose among 64-bit and 32-bit flavours.
555 Use new names for the 32-bit flavour when possible.
556 * src/machfault-macos-powerpc.h: Choose among 64-bit and 32-bit
558 * configure.ac (FAULT_CONTEXT, FAULT_CONTEXT_INCLUDE2): Choose
559 right flavour (ppc_thread_state_t/ppc_thread_state64_t or
560 i386_thread_state_t/x86_thread_state32_t/x86_thread_state64_t) at
563 2008-05-18 Bruno Haible <bruno@clisp.org>
565 * m4/libtool.m4: Update from libtool-2.2.4.
566 * m4/ltoptions.m4: Likewise.
567 * m4/ltversion.m4: Likewise.
568 * m4/lt~obsolete.m4: Likewise.
569 * build-aux/ltmain.sh: Likewise.
571 2008-04-06 Bruno Haible <bruno@clisp.org>
573 * m4/libtool.m4: Update from libtool-2.2.2.
574 * m4/ltoptions.m4: New file, from libtool-2.2.2.
575 * m4/ltsugar.m4: New file, from libtool-2.2.2.
576 * m4/ltversion.m4: New file, from libtool-2.2.2.
577 * m4/lt~obsolete.m4: New file, from libtool-2.2.2.
578 * build-aux/ltmain.sh: New file, from libtool-2.2.2.
579 * configure.ac: Use LT_INIT instead of AC_PROG_LIBTOOL.
581 2007-11-16 Bruno Haible <bruno@clisp.org>
583 * src/fault-freebsd-i386.h (SIGSEGV_FAULT_STACKPOINTER): Use sc_rsp
584 also on x86_64-freebsd platform.
585 Reported by Dmitri Hrapof <hrapof@common-lisp.ru> and
586 Petr Salinger <Petr.Salinger@seznam.cz>.
588 2007-11-15 Bruno Haible <bruno@clisp.org>
590 * configure.ac (CFG_SIGNALS, CFG_FAULT): Port to i586-kfreebsd-gnu
591 and x86_64-kfreebsd-gnu.
592 * src/fault-freebsd-i386.h (SIGSEGV_FAULT_STACKPOINTER): Likewise.
593 Based on patch by Petr Salinger <Petr.Salinger@seznam.cz>.
595 2007-11-11 Bruno Haible <bruno@clisp.org>
597 * Version 2.5 released.
599 2007-11-11 Bruno Haible <bruno@clisp.org>
601 * configure.ac: Bump version number to 2.5.
602 * src/sigsegv.h.in (LIBSIGSEGV_VERSION): Likewise.
604 2007-10-28 Bruno Haible <bruno@clisp.org>
606 * src/handler-macos.c (catch_exception_raise): Align the new stack
607 pointer on a 16-byte boundary.
608 * src/handler-win32.c (main_exception_filter): Correct alignment:
609 %esp must be aligned to == -4 mod 16 upon function entry.
611 2007-10-28 Bruno Haible <bruno@clisp.org>
613 * src/sigsegv.h.in (stackoverflow_install_handler): Avoid comment
615 Reported by Chris Willmore <willmc@rpi.edu>.
617 2007-10-28 Bruno Haible <bruno@clisp.org>
619 * src/machfault-macos-powerpc.h (SIGSEGV_FAULT_ADDRESS,
620 SIGSEGV_STACK_POINTER, SIGSEGV_PROGRAM_COUNTER): Add __DARWIN_UNIX03
622 * src/machfault-macos-i386.h (SIGSEGV_FAULT_ADDRESS,
623 SIGSEGV_STACK_POINTER, SIGSEGV_PROGRAM_COUNTER): Likewise.
624 * src/fault-macosdarwin7-powerpc.h (SIGSEGV_FAULT_STACKPOINTER):
626 * src/fault-macosdarwin7-powerpc.c (get_fault_addr): Likewise.
627 Reported by Chris Willmore <willmc@rpi.edu>.
629 2007-01-12 Bruno Haible <bruno@clisp.org>
631 * Makefile.am (check-next): Don't ask for reports from x86_64-*-linux*
634 2006-07-14 Bruno Haible <bruno@clisp.org>
636 * m4/sigaltstack.m4 (SV_SIGALTSTACK): Use SIGSTKSZ instead of
638 * m4/sigaltstack-longjmp.m4 (SV_TRY_LEAVE_HANDLER_LONGJMP): Likewise.
639 * m4/sigaltstack-siglongjmp.m4 (SV_TRY_LEAVE_HANDLER_SIGLONGJMP):
641 * tests/stackoverflow1.c (main): Likewise.
642 * tests/stackoverflow2.c (main): Likewise.
643 * src/sigsegv.h.in (stackoverflow_install_handler): Update
644 recommendation for extra_stack_size.
646 Reported by Peter Van Eynde <pvaneynd@users.sourceforge.net>.
648 2006-06-23 Bruno Haible <bruno@clisp.org>
650 * Version 2.4 released.
652 2006-06-23 Bruno Haible <bruno@clisp.org>
654 * configure.ac: Bump version number to 2.4.
655 * src/sigsegv.h.in (LIBSIGSEGV_VERSION): Likewise.
657 2006-06-17 Bruno Haible <bruno@clisp.org>
659 * src/Makefile.am (noinst_HEADERS): Add fault-netbsd.h.
661 2006-06-17 Bruno Haible <bruno@clisp.org>
663 * m4/sigaltstack.m4: Insert 'volatile' and pass a pointer, to defeat
665 * m4/sigaltstack-longjmp.m4: Likewise.
666 * m4/sigaltstack-siglongjmp.m4: Likewise.
668 2006-06-17 Bruno Haible <bruno@clisp.org>
670 * tests/stackoverflow1.c (recurse): Remove useless cast.
671 * tests/stackoverflow2.c (recurse): Likewise.
673 2006-06-17 Bruno Haible <bruno@clisp.org>
675 * src/stackvma-freebsd.c (sigsegv_get_vma): Test whether mincore()
676 works as expected before using it.
678 2006-03-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
680 * m4/libtool.m4 (_LT_SYS_DYNAMIC_LINKER) [ linux ]: Avoid warning when
681 "parsing" /etc/ld.so.conf and empty /etc/ld.so.conf.d.
683 2006-06-13 Bruno Haible <bruno@clisp.org>
685 Make NetBSD/i386 stack overflow detection work even without mincore.
686 * src/fault-netbsd.h: New file.
687 * configure.ac (CFG_FAULT): Choose it when appropriate.
689 2006-05-16 Bruno Haible <bruno@clisp.org>
691 Don't allow the compiler to reorder instructions in the tests.
692 * tests/sigsegv1.c (crashes): Use volatile in pointer access.
693 * tests/sigsegv2.c (main): Likewise.
694 * tests/stackoverflow2.c (main): Likewise.
696 2006-05-14 Bruno Haible <bruno@clisp.org>
698 Exploit the mincore() system call where available.
699 * src/stackvma-mincore.c: New file.
700 * src/Makefile.am (EXTRA_DIST): Add it.
701 * src/stackvma.h: Add double-inclusion guard.
702 * src/stackvma-freebsd.c: If mincore() is available, include also
704 (sigsegv_get_vma): If mincore() is available, use it as fallback.
705 * src/stackvma-linux.c: If mincore() is available, include also
707 (sigsegv_get_vma): If mincore() is available, use it as fallback.
708 * src/stackvma-procfs.c: If mincore() is available, include also
710 (sigsegv_get_vma): If mincore() is available, use it as fallback.
711 * configure.ac: Test for mincore.
712 (CFG_STACKVMA): Set to stackvma-mincore.c if nothing else is available.
714 2006-05-14 Bruno Haible <bruno@clisp.org>
716 * src/stackvma-simple.c: New file, extracted from handler-unix.c.
717 * src/Makefile.am (EXTRA_DIST): Add it.
718 * src/stackvma-beos.c: Include stackvma-simple.c.
719 (sigsegv_get_vma): Fill the vma's is_near_this field.
720 * src/stackvma-freebsd.c: Include stackvma-simple.c.
721 (sigsegv_get_vma): Fill the vma's is_near_this field.
722 * src/stackvma-linux.c: Include stackvma-simple.c.
723 (sigsegv_get_vma): Fill the vma's is_near_this field.
724 * src/stackvma-mach.c: Include stackvma-simple.c.
725 (sigsegv_get_vma): Fill the vma's is_near_this field.
726 * src/stackvma-procfs.c: Include stackvma-simple.c.
727 (sigsegv_get_vma): Fill the vma's is_near_this field.
728 * src/stackvma.h (vma_struct): Add is_near_this field.
729 * src/handler-unix.c (sigsegv_handler): Use the vma's is_near_this
732 2006-04-28 Bruno Haible <bruno@clisp.org>
734 * Version 2.3 released.
736 2006-04-28 Bruno Haible <bruno@clisp.org>
738 * configure.ac: Bump version number to 2.3.
739 * src/sigsegv.h.in (LIBSIGSEGV_VERSION): Likewise.
741 * build-aux/config.guess, build-aux/config.sub: Update to GNU version
744 * build-aux/install-sh: Update from automake-1.9.6.
745 * build-aux/missing: Likewise.
747 * build-aux/ltmain.sh: Update from libtool-1.5.22.
748 * m4/libtool.m4: Likewise.
750 2006-04-28 Bruno Haible <bruno@clisp.org>
752 * build-aux: Renamed from autoconf.
753 * configure.ac (AC_CONFIG_AUX_DIR): Set to build-aux.
755 2006-04-22 Bruno Haible <bruno@clisp.org>
757 * configure.ac: Renamed from configure.in.
759 2006-04-21 Bruno Haible <bruno@clisp.org>
761 * src/machfault-macos-i386.h: Rewritten for Darwin 8.6.1.
762 * configure.in: Change FAULT_CONTEXT for i?86-darwin.
764 2005-06-21 Paolo Bonzini <bonzini@gnu.org>
766 * configure.in: For handler-macos.c, include mach/thread_status.h.
767 * configure: Regenerate.
769 2005-06-21 Paolo Bonzini <bonzini@gnu.org>
771 * tests/stackoverflow1.c (recurse): Make more resilient to compiler
774 * tests/stackoverflow2.c: Likewise.
776 2005-05-24 Bruno Haible <bruno@clisp.org>
778 * src/handler-win32.c (main_exception_filter): Copy CONTEXT structure
779 to safe area on the stack.
780 Based on patch by Doug Currie <e@flavors.com>.
782 * src/handler-win32.c (main_exception_filter): Swap arguments passed
783 to stack_overflow_handler.
784 Patch by Doug Currie <e@flavors.com>.
786 * src/handler-win32.c (main_exception_filter): Align %esp on a 16-byte
789 2005-03-02 Bruno Haible <bruno@clisp.org>
791 * Version 2.2 released.
793 2005-03-02 Bruno Haible <bruno@clisp.org>
795 * autoconf/config.guess: Update.
796 * autoconf/config.sub: Update.
797 * autoconf/missing: Update from automake-1.9.5.
799 * m4/libtool.m4: Upgrade to libtool-1.5.14 with gettext modifications.
800 * autoconf/ltmain.sh: Likewise.
802 2005-03-02 Bruno Haible <bruno@clisp.org>
804 * src/fault-aix5.h: New file.
805 * src/fault-aix5-powerpc.h: New file.
806 * src/Makefile.am (noinst_HEADERS): Add them.
807 * configure.in: Choose them when the POSIX test succeeds on AIX.
809 * src/fault-aix3-powerpc.h: Renamed from src/fault-aix-powerpc.h.
810 * src/fault-aix3.h: Renamed from src/fault-aix.h.
811 * src/Makefile.am (noinst_HEADERS): Update.
812 * configure.in: Update. When cross-compiling, assume the AIX test
813 succeeds only on AIX 3 and AIX 4.
815 2005-03-01 Bruno Haible <bruno@clisp.org>
817 * configure.in: Fix test of CFG_MACHFAULT.
819 2005-02-27 Bruno Haible <bruno@clisp.org>
821 * configure.in: Skip tests that are not needed on MacOS X >= 10.2.
822 * m4/sigaltstack.m4 (SV_SIGALTSTACK): Don't perform the test on
825 2005-02-18 Bruno Haible <bruno@clisp.org>
827 * tests/sigsegv1.c (handler_called): Declare as volatile.
828 * tests/sigsegv2.c (logcount, logdata): Likewise.
829 * tests/stackoverflow1.c (pass): Likewise.
830 * tests/stackoverflow2.c (pass): Likewise.
832 2005-01-29 Bruno Haible <bruno@clisp.org>
834 * src/sigsegv.h.in (LIBSIGSEGV_VERSION): New macro.
835 (libsigsegv_version): New declaration.
836 * src/version.c: New file.
837 * src/Makefile.am (libsigsegv_la_SOURCES): Add version.c.
838 * Makefile.msvc (OBJECTS): Add version.obj.
839 (version.obj): New rule.
840 Suggested by Sam Steingold.
842 2004-08-25 Bruno Haible <bruno@clisp.org>
844 * m4/libtool.m4: Upgrade to libtool-1.5.6.
845 * autoconf/ltmain.sh: Upgrade to libtool-1.5.6.
847 2004-08-18 Bruno Haible <bruno@clisp.org>
849 * configure.in: Bump version number to 2.2.
851 2004-08-17 Bruno Haible <bruno@clisp.org>
853 Finish the Mach-based MacOS X support.
854 * src/handler-macos.c: Don't include mach/vm_map.h.
855 Include machfault.h instead of fault.h.
856 (save_exc_state): Remove variable.
857 (save_thread_state): New variable.
858 (terminating_handler): New function.
859 (altstack_handler): Pass the save_thread_state, not the save_exc_state,
860 to the user's handler.
861 (catch_exception_raise): Make it work also for platforms which don't
862 have an exc_state type. Call SIGSEGV_FAULT_ADDRESS with 2 arguments.
863 Don't clobber the exc_state; instead set the thread's program counter
864 to terminating_handler or altstack_handler, depending on the case.
865 Return KERN_SUCCESS at the end.
866 * src/machfault.h: New file.
867 * src/machfault-macos-powerpc.h (SIGSEGV_FAULT_ADDRESS): Add a second
869 * src/machfault-macos-i386.h: New file.
870 * src/Makefile.am (EXTRA_DIST): Add handler-macos.c.
871 (NOINST_HEADERS): Add machfault.h, machfault-macos-i386.h,
872 machfault-macos-powerpc.h.
873 * configure.in (CFG_HANDLER): Initialize to empty.
874 (CFG_MACHFAULT): New substituted variable.
875 On MacOS X PowerPC+i386, use CFG_HANDLER=handler-macos.c
877 (sv_cv_fault_include, sv_cv_have_stack_overflow_recovery): Set
878 correctly also in the handler-macos.c case.
880 2004-08-16 Bruno Haible <bruno@clisp.org>
882 Support for MacOS X 10.3 on PowerPC.
883 * src/fault-macosdarwin5-powerpc.h: Renamed from
884 src/fault-macos-powerpc.h.
885 * src/fault-macosdarwin5-powerpc.c: Renamed from
886 src/fault-macos-powerpc.c.
887 * src/fault-macosdarwin7-powerpc.h: New file.
888 * src/fault-macosdarwin7-powerpc.c: New file.
889 * src/Makefile.am (noinst_HEADERS): Update.
890 * configure.in: Test the method for MacOSX/Darwin5 PowerPC only after
891 the method for MacOSX/Darwin7 PowerPC failed.
892 Substitute FAULT_CONTEXT_INCLUDE2.
893 * src/sigsegv.h.in: Insert @FAULT_CONTEXT_INCLUDE2@.
894 * src/Makefile.am (sigsegv.h.msvc): Replace @FAULT_CONTEXT_INCLUDE2@.
896 2003-12-09 Paolo Bonzini <bonzini@gnu.org>
898 * src/handler-macos.c: Completed; removed dependency on
900 * src/machfault-macos-powerpc.h: Reorganized.
902 2003-12-08 Paolo Bonzini <bonzini@gnu.org>
903 Bruno Haible <bruno@clisp.org>
905 * src/handler-macos.c: New file.
906 * src/machfault.h: New file.
907 * src/machfault-macos-powerpc.h: New file.
909 2003-12-05 Bruno Haible <bruno@clisp.org>
911 * m4/fault.m4: Tweak indentation. Bump serial number.
912 * m4/getpagesize.m4: Likewise.
913 * m4/mmap-anon.m4: Likewise.
914 * m4/sigaltstack.m4: Likewise.
915 * m4/sigaltstack-longjmp.m4: Likewise.
916 * m4/sigaltstack-siglongjmp.m4: Likewise.
918 2003-12-05 Paolo Bonzini <bonzini@gnu.org>
920 * aclocal.m4: Regenerate with Automake 1.7h.
921 * configure.in: Drop m4/Makefile from list of generated files.
922 * configure: Regenerate.
923 * Makefile.am (install-data-hook): New name of the install-am
924 target, for Automake 1.8 compatibility. Other -am targets
925 are not affected because Automake does not have anything to
927 (AUTOMAKE_OPTIONS): Bump minimum Automake requirement to 1.7h.
928 (SUBDIRS): Remove m4.
929 ($(srcdir)/config.h.msvc): New target for config.h.msvc.
930 * Makefile.in: Regenerate with Automake 1.7h.
931 * m4/Makefile.am: Delete, Automake 1.7h takes care of it.
932 * m4/Makefile.in: Delete.
933 * src/Makefile.am (installdirs): Delete, Automake 1.7h adds it.
934 * src/Makefile.in: Regenerate with Automake 1.7h.
935 * tests/Makefile.in: Regenerate with Automake 1.7h.
937 * autoconf/config.guess: Update from automake-1.7h.
938 * autoconf/config.sub: Likewise.
939 * autoconf/install.sh: Likewise.
940 * autoconf/missing: Likewise.
941 * autoconf/mkinstalldirs: Delete.
942 * m4/fault.m4: autoupdate and manually tweak.
943 * m4/sigaltstack.m4: Likewise.
944 * m4/sigaltstack-longjmp.m4: Likewise.
945 * m4/sigaltstack-siglongjmp.m4: Likewise.
946 * m4/mmap-anon.m4: Likewise.
947 * m4/getpagesize.m4: Likewise.
949 2003-10-29 Bruno Haible <bruno@clisp.org>
951 * tests/sigsegv1.c (main): Add a check whether mprotect with
952 PROT_READ_WRITE really works.
953 * tests/sigsegv2.c (main): Likewise.
954 Reported by Ullal Devappa Kini <wmbfqj@vsnl.net>.
956 2003-08-21 Bruno Haible <bruno@clisp.org>
958 * Version 2.1 released.
960 2003-06-24 Paolo Bonzini <bonzini@gnu.org>
962 * m4/fault.m4: Exit if we detect an infinite loop.
963 * aclocal.m4: Regenerate.
964 * configure: Regenerate.
966 2003-06-18 Bruno Haible <bruno@clisp.org>
968 * autoconf/install-sh: Update from automake-1.7.5.
970 2003-05-14 Paolo Bonzini <bonzini@gnu.org>
972 * configure.in: Use signals-bsd.h for OpenBSD and NetBSD too.
973 Support instruction decoding to get fault address for Alphas.
974 * src/fault-netbsd-alpha.h: New file.
975 * src/fault-netbsd-alpha.c: New file.
976 * src/Makefile.am (noinst_HEADERS): Add them.
978 2003-05-14 Paolo Bonzini <bonzini@gnu.org>
980 * src/dispatcher.c (insert): Fix lossage in 64-bit environments
981 (cast from void* to unsigned int).
983 2003-05-10 Bruno Haible <bruno@clisp.org>
985 * tests/Makefile.am (../src/libsigsegv.la): New rule.
987 * Makefile.msvc (handler.obj): Complete the dependencies.
988 (stackoverflow2.exe): New rule.
989 (check): Depend on it.
992 2003-05-10 Paolo Bonzini <bonzini@gnu.org>
993 Bruno Haible <bruno@clisp.org>
995 * configure.in: AC_SUBST of CFG_STACKVMA, CFG_LEAVE, CFG_HANDLER.
996 * src/Makefile.am: Add dependencies for the object files.
998 2003-05-08 Paolo Bonzini <bonzini@gnu.org>
1000 * configure.in: Add $srcdir/ to #include statements. Needed when
1003 * src/signals-macos.h (SIGSEGV_FOR_ALL_SIGNALS): Add SIGSEGV.
1005 2003-05-03 Paolo Bonzini <bonzini@gnu.org>
1007 * configure.in: Tweak 2003-04-26 patch so that it works on mingw32 and
1010 2003-05-02 Bruno Haible <bruno@clisp.org>
1012 * src/handler-unix.c: Add special case for stack handling on IA-64.
1013 * src/fault-linux-ia64.h: Complete the port.
1014 * configure.in: Improve Linux/IA-64 support.
1016 2003-05-01 Bruno Haible <bruno@clisp.org>
1018 * configure.in: Don't use fault-hurd.h on NetBSD/alpha. It does not
1021 2003-05-01 Bruno Haible <bruno@clisp.org>
1023 Support for Linux/HPPA.
1024 * fault-linux-hppa.h: Don't include <siginfo.h>.
1025 (SIGSEGV_FAULT_ADDRESS): Change.
1026 (SIGSEGV_FAULT_ADDRESS_FROM_SIGINFO): Define it, otherwise the value
1027 passed for sip is 0.
1028 (SIGSEGV_FAULT_CONTEXT, SIGSEGV_FAULT_STACKPOINTER): Remove macros.
1029 * configure.in: Improve Linux/HPPA support.
1031 2003-05-01 Bruno Haible <bruno@clisp.org>
1033 Support for OpenBSD/i386.
1034 * src/fault-openbsd.h: New file.
1035 * src/fault-openbsd-i386.h: New file.
1036 * src/Makefile.am (noinst_HEADERS): Add them.
1037 * configure.in: If the POSIX test works and the OS is OpenBSD, use
1038 fault-openbsd.h instead of fault-posix.h.
1040 2003-05-01 Bruno Haible <bruno@clisp.org>
1042 * src/fault-hpux-hppa.h: Make it work on machines with 64-bit registers
1044 * configure.in: Likewise.
1046 2003-04-29 Bruno Haible <bruno@clisp.org>
1048 * configure.in: Define HAVE_STACKVMA if CFG_STACKVMA is nontrivial.
1049 * src/handler-unix.c: Test HAVE_STACKVMA instead of CFG_STACKVMA.
1051 * m4/fault.m4 (SV_TRY_FAULT): On HP-UX, always pass 0 as first argument
1053 * tests/mmaputil.h (mmap_zeromap): Likewise.
1055 2003-04-28 Bruno Haible <bruno@clisp.org>
1057 * src/stackvma-freebsd.c (sigsegv_get_vma): Fix logic error.
1059 2002-04-17 Paolo Bonzini <bonzini@gnu.org>
1062 * configure.in: Treat cygwin* like mingw*.
1063 * src/handler-win32.c [CYGWIN] (exception_list, _except_list,
1064 debug_get_except_list, cygwin_exception_handler,
1065 libsigsegv_exception_handler, do_install_main_exception_filter): New
1067 (install_main_exception_filter): New function.
1068 (sigsegv_install_handler, stackoverflow_install_handler): Call it.
1070 2003-04-26 Bruno Haible <bruno@clisp.org>
1072 * configure.in: Don't set sv_cv_have_stack_overflow_recovery=yes if
1073 not all of the fault-*.h and stackvma-*.h premises are fulfilled.
1074 Reported by Paolo Bonzini <bonzini@gnu.org> for NetBSD/Alpha.
1076 2003-04-03 Bruno Haible <bruno@clisp.org>
1078 * configure.in: Add --enable-relocatable option.
1079 * m4/relocatable.m4: New file, from GNU gettext.
1080 * m4/Makefile.am (EXTRA_DIST): Add it.
1082 * m4/libtool.m4: Update from GNU gettext, based on libtool-1.4.3.
1083 * autoconf/ltmain.sh: Likewise.
1085 2003-04-02 Bruno Haible <bruno@clisp.org>
1087 * configure.in: Bump version number to 2.1.
1089 * tests/stackoverflow2.c: New file, based on code by Paolo Bonzini.
1090 * tests/Makefile.am (TESTS, noinst_PROGRAMS): Add stackoverflow2.
1092 2003-04-02 Paolo Bonzini <bonzini@gnu.org>
1093 Bruno Haible <bruno@clisp.org>
1095 Complete the port to MacOS X (Darwin).
1096 * m4/fault.m4: Include sys/signal.h. Have an exit status of 3 instead
1097 of 1 if fault_address is misdetected.
1098 * m4/sigaltstack.m4: Define stack_t to struct sigaltstack if absent.
1099 Include <sys/signal.h>.
1100 * configure.in: Add check for sys/signal.h.
1101 Add support for catching stack overflow on MacOSX.
1102 Add support for MacOSX on i386.
1103 Provide a fallback for SS_ONSTACK before using it.
1104 * src/fault-macos-i386.h: New file.
1105 * src/stackvma-mach.c: New file.
1106 * src/fault-macos-powerpc.h (SIGSEGV_FAULT_STACKPOINTER): Change.
1107 * src/handler-unix.c: Include <sys/signal.h>.
1108 (SS_DISABLE): Provide a fallback.
1109 * src/leave-sigaltstack.c: Include sys/signal.h.
1110 (SS_ONSTACK): Provide a fallback.
1111 * src/Makefile.am (noinst_HEADERS): Add fault-macos-i386.h.
1112 (EXTRA_DIST): Add stackvma-mach.c.
1113 * tests/sigsegv1.c: Abort after 10 handler invocations.
1114 (main): Drop SKIP message, now emitted by automake 1.7.x.
1115 * tests/sigsegv2.c: Abort after 10 handler invocations.
1116 (main): Drop SKIP message, now emitted by automake 1.7.x.
1117 * tests/stackoverflow1.c (main): Drop SKIP message, now emitted by
1120 2002-10-14 Bruno Haible <bruno@clisp.org>
1122 * src/fault-none.h: New file.
1123 * src/fault.h: Include CFG_FAULT unconditionally.
1124 * src/leave-none.c: New file.
1125 * src/leave.c: Include CFG_LEAVE unconditionally.
1126 * src/stackvma.c: Include CFG_STACKVMA unconditionally.
1127 * configure.in (CFG_LEAVE, CFG_STACKVMA): Define always.
1128 * src/Makefile.am (noinst_HEADERS): Add fault-none.h.
1129 (EXTRA_DIST): Add leave-none.c.
1130 Reported by Paolo Bonzini <bonzini@gnu.org>.
1132 2002-09-30 Bruno Haible <bruno@clisp.org>
1134 * src/Makefile.am (noinst_HEADERS): Add fault-hurd.h,
1135 fault-linux-m68k.c, fault-macos-powerpc.h, fault-macos-powerpc.c,
1136 signals-hurd.h, signals-macos.h.
1138 2002-09-30 Bruno Haible <bruno@clisp.org>
1140 * Makefile.am (check-next): Don't ask for reports from i?86-*-linux*
1143 2002-09-30 Bruno Haible <bruno@clisp.org>
1145 Better Linux/PowerPC support.
1146 * configure.in: Change Linux/PowerPC support.
1147 * src/fault-linux-powerpc.h (SIGSEGV_FAULT_ADDRESS): New macro.
1149 2002-09-30 Bruno Haible <bruno@clisp.org>
1151 Better Linux/m68k support.
1152 * configure.in: Change Linux/m68k support.
1153 * src/fault-linux-m68k.c: New file.
1154 * src/fault-linux-m68k.h: Use it.
1156 2002-09-30 Bruno Haible <bruno@clisp.org>
1158 Tentative Hurd support.
1159 * configure.in: Add Hurd support.
1160 * src/signals-hurd.h: New file.
1161 * src/fault-hurd.h: New file.
1163 2002-09-30 Bruno Haible <bruno@clisp.org>
1165 MacOSX/PowerPC support.
1166 * configure.in: Add MacOSX/PowerPC support.
1167 * src/signals-macos.h: New file.
1168 * src/fault-macos-powerpc.c: New file.
1169 * src/fault-macos-powerpc.h: New file.
1171 2002-09-16 Bruno Haible <bruno@clisp.org>
1173 * src/fault-posix.h: Don't include <siginfo.h>. Needed for hppa-linux.
1174 Reported by Will Newton <will@misconception.org.uk>.
1176 2002-08-28 Bruno Haible <bruno@clisp.org>
1178 * Version 2.0 released.
1180 2002-07-28 Bruno Haible <bruno@clisp.org>
1182 Big reorganization and rewrite. Every file changed.