Modernize autoconf macro style.
[libsigsegv/ericb.git] / ChangeLog
blobf3897f0b0b4d51b5f5a2550c9bafc37cfa697cdb
1 2010-11-06  Bruno Haible  <bruno@clisp.org>
3         Modernize autoconf macro style.
4         * configure.ac: Surround all macro arguments in brackets.
5         * m4/getpagesize.m4: Likewise.
6         * m4/mmap-anon.m4: Likewise.
7         * m4/sigaltstack.m4: Likewise.
9 2010-11-06  Bruno Haible  <bruno@clisp.org>
11         Don't list files in .gitignore that are absent after "make distclean".
12         * .gitignore: Complete the list of files that are created by "make" and
13         removed by "make distclean". But comment them out, since they belong in
14         .git/info/exclude. Also remove /autom4te.cache because "make distclean"
15         does not remove it.
17 2010-10-25  Eric Blake  <eblake@redhat.com>
19         Fix powerpc64-unknown-linux-gnu implementation.
20         * src/stackvma-rofile.c (struct rofile): Reduce size, to avoid
21         overflowing alternate stack when compiled under -O2.
22         * src/stackvma-mincore.c (mapped_range_start, mapped_range_end):
23         Likewise.
24         * NEWS: Document the fix.
26 2010-10-24  Eric Blake  <eblake@redhat.com>
27             Bruno Haible  <bruno@clisp.org>
29         Enhance the tests to detect overflow of the alternate stack.
30         * tests/altstack.h: New file.
31         * tests/Makefile.am (EXTRA_DIST): Add altstack.h.
32         * configure.ac: Invoke AC_TYPE_UINTPTR_T.
33         * tests/stackoverflow1.c: Include altstack.h.
34         (SIGSTKSZ): Remove definition.
35         (mystack): Remove definition.
36         (main): Invoke prepare_alternate_stack and
37         check_alternate_stack_no_overflow.
38         * tests/stackoverflow2.c: Likewise.
39         * tests/efault2.c: Likewise.
40         * tests/efault3.c: Likewise.
42 2010-10-21  Eric Blake  <eblake@redhat.com>
44         * .gitignore: Ignore more files.
46 2010-09-23  Bruno Haible  <bruno@clisp.org>
48         * m4/libtool.m4: Update from libtool-2.4.
49         * m4/ltversion.m4: Likewise.
50         * build-aux/ltmain.sh: Likewise.
52 2010-06-04  Bruno Haible  <bruno@clisp.org>
54         * m4/libtool.m4: Update from libtool-2.2.8.
55         * m4/ltoptions.m4: Likewise.
56         * m4/ltversion.m4: Likewise.
57         * m4/lt~obsolete.m4: Likewise.
58         * build-aux/ltmain.sh: Likewise.
60 2010-04-06  Eric Blake  <eblake@redhat.com>
62         * AUTHORS: Add myself.
64 2010-03-30  Bruno Haible  <bruno@clisp.org>
66         * README.woe32: Update for Cygwin 1.7.x.
68 2010-02-18  Bruno Haible  <bruno@clisp.org>
70         Fix 64-bit builds with --enable-shared on MacOS X.
71         * src/stackvma-mach.c (sigsegv_get_vma): On 64-bit MacOS X, use
72         vm_region_64 instead of vm_region.
73         * NEWS: Mention the fix.
74         Reported by Rudá Moura <ruda@rudix.org>.
76 2010-01-31  Bruno Haible  <bruno@clisp.org>
78         * README: Add more homepage links. Add bug report address.
80 2010-01-07  Bruno Haible  <bruno@clisp.org>
82         Improve support for OpenBSD.
83         * src/fault-openbsd-i386.h (SIGSEGV_FAULT_STACKPOINTER): Define
84         differently in 64-bit mode.
85         * src/fault-openbsd-alpha.h: New file.
86         * src/fault-openbsd-arm.h: New file.
87         * src/fault-openbsd-hppa.h: New file.
88         * src/fault-openbsd-m68k.h: New file.
89         * src/fault-openbsd-m88k.h: New file.
90         * src/fault-openbsd-mips.h: New file.
91         * src/fault-openbsd-powerpc.h: New file.
92         * src/fault-openbsd-sh.h: New file.
93         * src/fault-openbsd-sparc.h: New file.
94         * src/fault-openbsd-vax.h: New file.
95         * src/Makefile.am (noinst_HEADERS): Add the new files.
96         * configure.ac (CFG_FAULT): Use these files on OpenBSD.
97         Reported by Paul Irofti <bulibuta@sdf.lonestar.org>.
99 2009-12-11  Bruno Haible  <bruno@clisp.org>
101         * Version 2.8 released.
103 2009-12-11  Bruno Haible  <bruno@clisp.org>
105         * configure.ac: Bump version number to 2.8.
106         * src/sigsegv.h.in (LIBSIGSEGV_VERSION): Likewise.
107         * README: Likewise.
108         * src/Makefile.am (LIBSIGSEGV_VERSION_INFO): Bump to 2:1:0.
110 2009-12-11  Bruno Haible  <bruno@clisp.org>
112         Remove configuration option --enable-EFAULT.
113         * configure.ac (enable_EFAULT): Set to yes on Cygwin, to no otherwise.
114         * README, NEWS: Don't mention --enable-EFAULT.
115         Reported by Eric Blake.
117 2009-12-11  Bruno Haible  <bruno@clisp.org>
119         New test for Cygwin.
120         * tests/cygwin1.c: New file, based on code by Eric Blake.
121         * tests/Makefile.am (TESTS, noinst_PROGRAMS): Add it.
122         * configure.ac (CYGWIN): New conditional.
124 2009-11-21  Eric Blake  <ebb9@byu.net>
125             Bruno Haible  <bruno@clisp.org>
127         New configuration option --enable-EFAULT.
128         * configure.ac: Accept option --enable-EFAULT. Set and define
129         ENABLE_EFAULT. Invoke SV_SYSCALLS_EFAULT.
130         For Cygwin, use the CFG_FAULT that was already determined, or
131         fault-cygwin-old.h if none. In the latter case, define
132         OLD_CYGWIN_WORKAROUND.
133         * m4/efault.m4: New file.
134         * src/handler-win32.c [CYGWIN && ENABLE_EFAULT]: Include
135         handler-unix.c.
136         (MIXING_UNIX_SIGSEGV_AND_WIN32_STACKOVERFLOW_HANDLING): New macro.
137         (last_seen_fault_address): New variable.
138         (main_exception_filter): Store the fault address for the Unix signal
139         handler.
140         (sigsegv_install_handler): Redefine.
141         (sigsegv_deinstall_handler, sigsegv_leave_handler): Don't define.
142         * src/handler-unix.c (stackoverflow_install_handler,
143         stackoverflow_deinstall_handler): Don't define if
144         MIXING_UNIX_SIGSEGV_AND_WIN32_STACKOVERFLOW_HANDLING is set.
145         * src/fault-cygwin-old.h: New file.
146         * src/Makefile.am (noinst_HEADERS): Add it.
147         * tests/efault1.c: New file.
148         * tests/efault2.c: New file.
149         * tests/efault3.c: New file.
150         * tests/Makefile.am (TESTS, noinst_PROGRAMS): Add efault1, efault2,
151         efault3.
152         * README, NEWS: Mention the new option.
154 2009-11-21  Bruno Haible  <bruno@clisp.org>
156         Support for Cygwin 1.7.
157         * configure.ac: For Cygwin and mingw, choose FAULT_CONTEXT in a way
158         that is consistent with CFD_HANDLER.
159         Reported by Eric Blake <ebb9@byu.net>
161 2009-11-21  Bruno Haible  <bruno@clisp.org>
163         * configure.ac: Add comments and structure.
165 2009-11-21  Bruno Haible  <bruno@clisp.org>
167         Reduce size of configure.ac.
168         * m4/stack-direction.m4: New file, extracted from configure.ac.
169         * configure.ac: Simply invoke SV_STACK_DIRECTION.
171 2009-11-21  Eric Blake  <ebb9@byu.net>
172             Bruno Haible  <bruno@clisp.org>
174         Avoid a gcc warning.
175         * src/handler-win32.c (debug_get_except_list): Mark as unused.
177 2009-11-21  Bruno Haible  <bruno@clisp.org>
179         Fix compilation error on newer versions of HP-UX 11.31 on ia64.
180         * configure.ac: Set sv_cv_have_stack_overflow_recovery to 'no' if it is
181         not possible to longjmp out of the signal handler. On HP-UX 11.31 on
182         ia64 it is only possible with siglongjmp (as far as we know).
183         Reported by Bill Glessner <bill.glessner@cwu.edu>.
185         * configure.ac: Move determination of CFG_LEAVE before the
186         determination of sv_cv_have_stack_overflow_recovery.
188 2009-10-17  Bruno Haible  <bruno@clisp.org>
190         * README: Mention danger of longjmping back to a central point.
191         Reported by Angelo Borsotti <angelo.borsotti@gmail.com>.
193 2009-09-22  Paolo Bonzini  <bonzini@gnu.org>
195         Move more declarations of alternate stacks to global scope.
196         * m4/sigaltstack-longjmp.m4: Make mystack global.
197         * m4/sigaltstack-siglongjmp.m4: Make mystack global.
198         * m4/sigaltstack.m4: Make mystack global.
200 2009-09-22  Paolo Bonzini  <bonzini@gnu.org>
202         Fix crash of stackoverflow2 on x86_64-linux.
203         * tests/stackoverflow1.c: Make mystack global.
204         * tests/stackoverflow2.c: Likewise.
205         * src/sigsegv.h.in: Warn against placing the alternate stack
206         on the main stack.
208 2009-08-16  Bruno Haible  <bruno@clisp.org>
210         Avoid a gcc warning on Solaris.
211         * src/stackvma-procfs.c: Include <string.h>.
213 2009-08-14  Bruno Haible  <bruno@clisp.org>
215         Remove config.guess, config.sub from from version control.
216         * autogen.sh: Fetch config.guess, config.sub.
217         * build-aux/config.guess: Remove file.
218         * build-aux/config.sub: Remove file.
220 2009-08-14  Bruno Haible  <bruno@clisp.org>
222         Remove autogenerated files from version control.
223         * autogen.sh: New file.
224         * aclocal.m4: Remove file.
225         * configure: Remove file.
226         * config.h.in: Remove file.
227         * Makefile.in: Remove file.
228         * src/Makefile.in: Remove file.
229         * tests/Makefile.in: Remove file.
230         * build-aux/install-sh: Remove file.
231         * build-aux/missing: Remove file.
232         * config.h.msvc: Remove file.
233         * src/sigsegv.h.msvc: Remove file.
235 2009-08-14  Bruno Haible  <bruno@clisp.org>
237         Override automake's tar command used for creating distributions.
238         * configure.ac (am__tar): New variable.
240 2009-08-09  Bruno Haible  <bruno@clisp.org>
242         * Version 2.7 released.
244 2009-08-09  Bruno Haible  <bruno@clisp.org>
246         * configure.ac: Bump version number to 2.7.
247         * src/sigsegv.h.in (LIBSIGSEGV_VERSION): Likewise.
248         * src/Makefile.am (LIBSIGSEGV_VERSION_INFO): Bump to 2:0:0.
250 2009-08-09  Bruno Haible  <bruno@clisp.org>
252         * src/fault-linux-powerpc.h (SIGSEGV_FAULT_STACKPOINTER): Fix mistake.
254 2009-08-09  Bruno Haible  <bruno@clisp.org>
256         Avoid warnings on glibc systems.
257         * src/stackvma-mincore.c (pageinfo_t): New type.
258         (is_mapped, mapped_range_start, mapped_range_end): Use it.
260 2009-08-01  Bruno Haible  <bruno@clisp.org>
262         Prefer the POSIX way over the traditional one, on Linux.
263         * configure.ac: Use the traditional Linux way only if the POSIX way
264         does not work.
265         * NEWS: Mention the change.
267 2009-08-01  Bruno Haible  <bruno@clisp.org>
269         Add knowledge where to find the stack pointer on Linux platforms.
270         * src/fault-linux-alpha.h: New file.
271         * src/fault-linux-arm.h: New file.
272         * src/fault-linux-cris.h: New file.
273         * src/fault-linux-hppa.h: New file.
274         * src/fault-linux-i386.h: New file.
275         * src/fault-linux-ia64.h: New file.
276         * src/fault-linux-m68k.h: New file.
277         * src/fault-linux-mips.h: New file.
278         * src/fault-linux-powerpc.h: New file.
279         * src/fault-linux-s390.h: New file.
280         * src/fault-linux-sh.h: New file.
281         * src/fault-linux-sparc.h: New file.
282         * src/Makefile.am (noinst_HEADERS): Add them.
283         * src/handler-unix.c (_GNU_SOURCE): Define.
284         * src/fault-linux-hppa-old.h: Add alternative code, commented.
285         * src/fault-linux-sparc-old.h: Likewise.
286         * configure.ac (CFG_FAULT): Use these files on Linux when the POSIX way
287         of catching page faults works.
289 2009-08-01  Bruno Haible  <bruno@clisp.org>
291         * src/fault-linux-i386-old.h: Renamed from src/fault-linux-i386.h.
292         * src/Makefile.am (noinst_HEADERS): Update.
293         * configure.ac: Update.
295         * src/fault-linux-i386-oldold.h: Renamed from
296         src/fault-linux-i386-old.h.
297         * src/Makefile.am (noinst_HEADERS): Update.
298         * configure.ac: Update.
300         * src/fault-linux-alpha-old.h: Renamed from src/fault-linux-alpha.h.
301         * src/fault-linux-arm-old.h: Renamed from src/fault-linux-arm.h.
302         * src/fault-linux-cris-old.h: Renamed from src/fault-linux-cris.h.
303         * src/fault-linux-hppa-old.h: Renamed from src/fault-linux-hppa.h.
304         * src/fault-linux-ia64-old.h: Renamed from src/fault-linux-ia64.h.
305         * src/fault-linux-m68k-old.c: Renamed from src/fault-linux-m68k.c.
306         * src/fault-linux-m68k-old.h: Renamed from src/fault-linux-m68k.h.
307         Update.
308         * src/fault-linux-mips-old.h: Renamed from src/fault-linux-mips.h.
309         * src/fault-linux-powerpc-old.h: Renamed from src/fault-linux-powerpc.h.
310         * src/fault-linux-s390-old.h: Renamed from src/fault-linux-s390.h.
311         * src/fault-linux-sh-old.h: Renamed from src/fault-linux-sh.h.
312         * src/fault-linux-sparc-old.h: Renamed from src/fault-linux-sparc.h.
313         * src/fault-linux-x86_64-old.h: Renamed from src/fault-linux-x86_64.h.
314         * src/Makefile.am (noinst_HEADERS): Update.
315         * configure.ac: Update.
317 2009-06-23  Bruno Haible  <bruno@clisp.org>
319         * Makefile.am (check-next): No longer ask for copies of config.log.
321 2009-06-23  Bruno Haible  <bruno@clisp.org>
323         Improve support for MirBSD 10.
324         * configure.ac (CFG_FAULT, FAULT_CONTEXT): Treat MirBSD/i386 like
325         OpenBSD/i386.
327 2009-06-23  Bruno Haible  <bruno@clisp.org>
329         Add support for platforms that follow POSIX:2008, not POSIX:2001.
330         * configure.ac (POSIX): Add MirBSD to known list.
331         (CFG_FAULT, FAULT_CONTEXT, FAULT_CONTEXT_INCLUDE): Define appropriately
332         when <ucontext.h> does not exist.
333         * src/fault-posix-ucontext.h: Renamed from src/fault-posix.h.
334         * src/fault-posix.h: New file.
335         * src/fault-aix5.h: Update.
336         * src/fault-hpux-hppa.h: Update.
337         * src/fault-netbsd.h: Update.
338         * src/fault-solaris.h: Update.
339         * src/Makefile.am (noinst_HEADERS): Add fault-posix-ucontext.h.
341 2009-06-23  Bruno Haible  <bruno@clisp.org>
343         * configure.ac (FAULT_CONTEXT_INCLUDE): Reinstall the AC_SUBST
344         invocation.
346 2009-05-21  Bruno Haible  <bruno@clisp.org>
348         * configure.ac (FAULT_CONTEXT_INCLUDE): Don't substitute into
349         Makefiles.
351 2009-05-21  Bruno Haible  <bruno@clisp.org>
353         * tests/Makefile.am (AUTOMAKE_OPTIONS): Assume automake >= 1.11.
354         Use color-tests option.
356 2009-01-14  Bruno Haible  <bruno@clisp.org>
358         * configure.ac: More consistent m4 quoting.
360 2008-09-27  Bruno Haible  <bruno@clisp.org>
362         * build-aux/config.sub: Update to GNU version 2008-09-08.
364 2008-09-23  Eric Blake  <ebb9@byu.net>
366         Use 2 * SIGSTKSZ consistently in configuration checks.
367         * m4/sigaltstack.m4 (SV_SIGALTSTACK): Work around IRIX sigaltstack bug.
368         * m4/sigaltstack-longjmp.m4 (SV_TRY_LEAVE_HANDLER_LONGJMP): Likewise.
369         * m4/sigaltstack-siglongjmp.m4 (SV_TRY_LEAVE_HANDLER_SIGLONGJMP):
370         Likewise.
372 2008-09-21  Bruno Haible  <bruno@clisp.org>
374         * src/Makefile.am (LIBSIGSEGV_VERSION_INFO): New variable.
375         (libsigsegv_la_LDFLAGS): Pass -rpath and -version-info option.
376         Reported by Thomas Klausner <tk@giga.or.at>.
378 2008-09-21  Eric Blake  <ebb9@byu.net>
379             Bruno Haible  <bruno@clisp.org>
381         Detect and work around bug in Irix 5.3 sigaltstack.
382         * m4/sigaltstack.m4 (SV_SIGALTSTACK): Test for broken stack_t direction
383         in sigaltstack.
384         * src/handler-unix.c (stackoverflow_install_handler): Adjust stack
385         accordingly.
386         * tests/stackoverflow1.c (stack_lower_bound, stack_upper_bound): New
387         variables.
388         (stackoverflow_handler): Use them to expose IRIX bug.
389         (main): Initialize them.
391 2008-09-07  Bruno Haible  <bruno@clisp.org>
393         * m4/libtool.m4: Update from libtool-2.2.6.
394         * m4/ltoptions.m4: Likewise.
395         * m4/ltsugar.m4: Likewise.
396         * m4/ltversion.m4: Likewise.
397         * build-aux/ltmain.sh: Likewise.
399 2008-08-25  Bruno Haible  <bruno@clisp.org>
401         * Version 2.6 released.
403 2008-08-24  Bruno Haible  <bruno@clisp.org>
405         * configure.ac: Treat Dragonfly BSD platforms like FreeBSD.
406         Reported by Thomas Klausner <tk@giga.or.at>.
408 2008-08-24  Bruno Haible  <bruno@clisp.org>
410         * src/stackvma-mincore.c (mincore_is_near_this): Improve logic. Needed
411         for reliable NULL pointer access classification as SIGSEGV on AIX 4.3.
413 2008-08-24  Bruno Haible  <bruno@clisp.org>
415         * m4/sigaltstack.m4: Change 'volatile int' return type to 'int'. Needed
416         for AIX 4.3 xlc.
417         * m4/sigaltstack-longjmp.m4: Likewise.
418         * m4/sigaltstack-siglongjmp.m4: Likewise.
419         * tests/stackoverflow1.c (recurse): Likewise.
420         * tests/stackoverflow2.c (recurse): Likewise.
422 2008-08-24  Bruno Haible  <bruno@clisp.org>
424         * tests/sigsegv1.c: Include <config.h>.
425         * tests/sigsegv2.c: Likewise.
426         * tests/sigsegv3.c: Include <config.h> before all other headers.
427         * tests/stackoverflow1.c: Likewise.
428         * tests/stackoverflow2.c: Likewise.
430 2008-08-24  Bruno Haible  <bruno@clisp.org>
432         Fix the sigsegv3 test on MacOS X.
433         * src/sigsegv.h.in (sigsegv_leave_handler): Take 4 arguments.
434         * NEWS: Mention the change.
435         * src/handler-macos.c (our_exception_thread, signalled_thread): New
436         variables.
437         (catch_exception_raise): Set signalled_thread during the user_handler
438         invocation.
439         (mach_exception_thread): Initialize our_exception_thread.
440         (sigsegv_leave_handler): Take 4 arguments. When called from within
441         the exception thread, let the signalled thread do a hyperjump.
442         * src/handler-unix.c (sigsegv_leave_handler): Take 4 arguments.
443         * src/handler-win32.c (sigsegv_leave_handler): Likewise.
444         * src/handler-none.c (sigsegv_leave_handler): Likewise.
445         * src/machfault-macos.h (SIGSEGV_INTEGER_ARGUMENT_1,
446         SIGSEGV_INTEGER_ARGUMENT_2, SIGSEGV_INTEGER_ARGUMENT_3,
447         SIGSEGV_FRAME_POINTER): New macros.
448         * tests/sigsegv3.c (handler_continuation): New function.
449         (handler): Update to new API.
450         * tests/stackoverflow1.c (stackoverflow_handler_continuation): New
451         function.
452         (stackoverflow_handler): Update to new API.
453         * tests/stackoverflow2.c (stackoverflow_handler_continuation): New
454         function.
455         (stackoverflow_handler, sigsegv_handler): Update to new API.
457 2008-08-24  Bruno Haible  <bruno@clisp.org>
459         Test the use of sigsegv_leave_handler from within a SIGSEGV handler.
460         * tests/sigsegv3.c: New file.
461         * tests/Makefile.am (TESTS, noinst_PROGRAMS): Add sigsegv3.
463 2008-08-23  Eric Blake  <ebb9@byu.net>
465         * src/Makefile.am (noinst_HEADERS): Remove machfault-macos-powerpc.h
466         and machfault-macos-i386.h. Add machfault-macos.h.
468 2008-08-17  Bruno Haible  <bruno@clisp.org>
470         Allow building universal binaries on MacOS X.
471         * src/machfault-macos.h: New file, combining
472         src/machfault-macos-powerpc.h and src/machfault-macos-i386.h.
473         * src/machfault-macos-powerpc.h: Remove file.
474         * src/machfault-macos-i386.h: Remove file.
475         * configure.ac (CFG_MACHFAULT): Set to machfault-macos.h.
476         (FAULT_CONTEXT_INCLUDE) [MacOSX]: Set to #ifdefs for all four possible
477         architectures.
479 2008-07-20  Bruno Haible  <bruno@clisp.org>
481         Make sigsegv_get_vma async-safe.
482         * src/sigsegv.h.in (sigsegv_handler_t, stackoverflow_handler_t):
483         Mention async-safety constraints.
484         + src/stackvma-rofile.c: New file.
485         * src/stackvma-freebsd.c: Include stackvma-rofile.c.
486         (sigsegv_get_vma): Use struct rofile instead of FILE.
487         * src/stackvma-linux.c: Include stackvma-rofile.c.
488         (sigsegv_get_vma): Use struct rofile instead of FILE.
489         * src/stackvma-procfs.c: Include <sys/mman.h> instead of <stdlib.h> and
490         <stdio.h>.
491         (sigsegv_get_vma): Avoid using sprintf. Ensure pagesize is initialized.
492         Use mmap/munmap instead of malloc/free.
493         * src/Makefile.am (EXTRA_DIST): Add stackvma-rofile.c.
494         Reported by Eric Blake <ebb9@byu.net>.
496 2008-07-20  Bruno Haible  <bruno@clisp.org>
498         * src/handler-unix.c (sigsegv_handler): Preserve errno.
500 2008-07-20  Eric Blake  <ebb9@byu.net>
502         * src/stackvma-mincore.c (mincore_is_near_this): Fix logic.
504 2008-07-20  Bruno Haible  <bruno@clisp.org>
506         * tests/stackoverflow2.c (main): Test also a NULL pointer access.
507         Reported by Eric Blake <ebb9@byu.net>.
509 2008-06-23  Bruno Haible  <bruno@clisp.org>
511         * build-aux/config.guess: Update to GNU version 2008-06-16.
512         * build-aux/config.sub: Likewise.
514 2008-05-31  Bruno Haible  <bruno@clisp.org>
516         Make cross-compile from MacOS X 10.5 to MacOS X 10.4 work.
517         * src/handler-macos.c (MacOS_X_10_5_HEADERS): New macro.
518         * src/machfault-macos-i386.h: Use it.
519         * src/machfault-macos-powerpc.h: Likewise.
520         Reported by Dr Tomaž Slivnik <slivnik@tomaz.name>.
522 2008-05-31  Bruno Haible  <bruno@clisp.org>
524         * m4/mmap-anon.m4 (SV_MMAP_ANON): Add known cross-compile results for
525         MacOS X.
526         Reported by Dr Tomaž Slivnik <slivnik@tomaz.name>.
528 2008-05-27  Bruno Haible  <bruno@clisp.org>
530         * configure.ac: Require at least autoconf 2.62. Merge
531         FAULT_CONTEXT_INCLUDE2 variable into FAULT_CONTEXT_INCLUDE.
532         * src/sigsegv.h.in: Remove FAULT_CONTEXT_INCLUDE2 substitution.
533         * src/Makefile.am (sigsegv.h.msvc): Update.
535 2008-05-27  Bruno Haible  <bruno@clisp.org>
537         * configure.ac: Bump version number to 2.6.
538         * src/sigsegv.h.in (LIBSIGSEGV_VERSION): Likewise.
540 2008-05-27  Bruno Haible  <bruno@clisp.org>
542         Support for 64-bit mode on MacOS X 10.5.
543         * src/handler-macos.c (catch_exception_raise): Align the stack pointer
544         also on x86_64. Needed for MMX instructions.
545         * src/machfault-macos-i386.h: Choose among 64-bit and 32-bit flavours.
546         Use new names for the 32-bit flavour when possible.
547         * src/machfault-macos-powerpc.h: Choose among 64-bit and 32-bit
548         flavours.
549         * configure.ac (FAULT_CONTEXT, FAULT_CONTEXT_INCLUDE2): Choose
550         right flavour (ppc_thread_state_t/ppc_thread_state64_t or
551         i386_thread_state_t/x86_thread_state32_t/x86_thread_state64_t) at
552         compile time.
554 2008-05-18  Bruno Haible  <bruno@clisp.org>
556         * m4/libtool.m4: Update from libtool-2.2.4.
557         * m4/ltoptions.m4: Likewise.
558         * m4/ltversion.m4: Likewise.
559         * m4/lt~obsolete.m4: Likewise.
560         * build-aux/ltmain.sh: Likewise.
562 2008-04-06  Bruno Haible  <bruno@clisp.org>
564         * m4/libtool.m4: Update from libtool-2.2.2.
565         * m4/ltoptions.m4: New file, from libtool-2.2.2.
566         * m4/ltsugar.m4: New file, from libtool-2.2.2.
567         * m4/ltversion.m4: New file, from libtool-2.2.2.
568         * m4/lt~obsolete.m4: New file, from libtool-2.2.2.
569         * build-aux/ltmain.sh: New file, from libtool-2.2.2.
570         * configure.ac: Use LT_INIT instead of AC_PROG_LIBTOOL.
572 2007-11-16  Bruno Haible  <bruno@clisp.org>
574         * src/fault-freebsd-i386.h (SIGSEGV_FAULT_STACKPOINTER): Use sc_rsp
575         also on x86_64-freebsd platform.
576         Reported by Dmitri Hrapof <hrapof@common-lisp.ru> and
577         Petr Salinger <Petr.Salinger@seznam.cz>.
579 2007-11-15  Bruno Haible  <bruno@clisp.org>
581         * configure.ac (CFG_SIGNALS, CFG_FAULT): Port to i586-kfreebsd-gnu
582         and x86_64-kfreebsd-gnu.
583         * src/fault-freebsd-i386.h (SIGSEGV_FAULT_STACKPOINTER): Likewise.
584         Based on patch by Petr Salinger <Petr.Salinger@seznam.cz>.
586 2007-11-11  Bruno Haible  <bruno@clisp.org>
588         * Version 2.5 released.
590 2007-11-11  Bruno Haible  <bruno@clisp.org>
592         * configure.ac: Bump version number to 2.5.
593         * src/sigsegv.h.in (LIBSIGSEGV_VERSION): Likewise.
595 2007-10-28  Bruno Haible  <bruno@clisp.org>
597         * src/handler-macos.c (catch_exception_raise): Align the new stack
598         pointer on a 16-byte boundary.
599         * src/handler-win32.c (main_exception_filter): Correct alignment:
600         %esp must be aligned to == -4 mod 16 upon function entry.
602 2007-10-28  Bruno Haible  <bruno@clisp.org>
604         * src/sigsegv.h.in (stackoverflow_install_handler): Avoid comment
605         inside comment.
606         Reported by Chris Willmore <willmc@rpi.edu>.
608 2007-10-28  Bruno Haible  <bruno@clisp.org>
610         * src/machfault-macos-powerpc.h (SIGSEGV_FAULT_ADDRESS,
611         SIGSEGV_STACK_POINTER, SIGSEGV_PROGRAM_COUNTER): Add __DARWIN_UNIX03
612         conditional.
613         * src/machfault-macos-i386.h (SIGSEGV_FAULT_ADDRESS,
614         SIGSEGV_STACK_POINTER, SIGSEGV_PROGRAM_COUNTER): Likewise.
615         * src/fault-macosdarwin7-powerpc.h (SIGSEGV_FAULT_STACKPOINTER):
616         Likewise.
617         * src/fault-macosdarwin7-powerpc.c (get_fault_addr): Likewise.
618         Reported by Chris Willmore <willmc@rpi.edu>.
620 2007-01-12  Bruno Haible  <bruno@clisp.org>
622         * Makefile.am (check-next): Don't ask for reports from x86_64-*-linux*
623         platforms.
625 2006-07-14  Bruno Haible  <bruno@clisp.org>
627         * m4/sigaltstack.m4 (SV_SIGALTSTACK): Use SIGSTKSZ instead of
628         hardcoding 16384.
629         * m4/sigaltstack-longjmp.m4 (SV_TRY_LEAVE_HANDLER_LONGJMP): Likewise.
630         * m4/sigaltstack-siglongjmp.m4 (SV_TRY_LEAVE_HANDLER_SIGLONGJMP):
631         Likewise.
632         * tests/stackoverflow1.c (main): Likewise.
633         * tests/stackoverflow2.c (main): Likewise.
634         * src/sigsegv.h.in (stackoverflow_install_handler): Update
635         recommendation for extra_stack_size.
636         Needed for ia64.
637         Reported by Peter Van Eynde <pvaneynd@users.sourceforge.net>.
639 2006-06-23  Bruno Haible  <bruno@clisp.org>
641         * Version 2.4 released.
643 2006-06-23  Bruno Haible  <bruno@clisp.org>
645         * configure.ac: Bump version number to 2.4.
646         * src/sigsegv.h.in (LIBSIGSEGV_VERSION): Likewise.
648 2006-06-17  Bruno Haible  <bruno@clisp.org>
650         * src/Makefile.am (noinst_HEADERS): Add fault-netbsd.h.
652 2006-06-17  Bruno Haible  <bruno@clisp.org>
654         * m4/sigaltstack.m4: Insert 'volatile' and pass a pointer, to defeat
655         GCC 4 optimizations.
656         * m4/sigaltstack-longjmp.m4: Likewise.
657         * m4/sigaltstack-siglongjmp.m4: Likewise.
659 2006-06-17  Bruno Haible  <bruno@clisp.org>
661         * tests/stackoverflow1.c (recurse): Remove useless cast.
662         * tests/stackoverflow2.c (recurse): Likewise.
664 2006-06-17  Bruno Haible  <bruno@clisp.org>
666         * src/stackvma-freebsd.c (sigsegv_get_vma): Test whether mincore()
667         works as expected before using it.
669 2006-03-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
671         * m4/libtool.m4 (_LT_SYS_DYNAMIC_LINKER) [ linux ]: Avoid warning when
672         "parsing" /etc/ld.so.conf and empty /etc/ld.so.conf.d.
674 2006-06-13  Bruno Haible  <bruno@clisp.org>
676         Make NetBSD/i386 stack overflow detection work even without mincore.
677         * src/fault-netbsd.h: New file.
678         * configure.ac (CFG_FAULT): Choose it when appropriate.
680 2006-05-16  Bruno Haible  <bruno@clisp.org>
682         Don't allow the compiler to reorder instructions in the tests.
683         * tests/sigsegv1.c (crashes): Use volatile in pointer access.
684         * tests/sigsegv2.c (main): Likewise.
685         * tests/stackoverflow2.c (main): Likewise.
687 2006-05-14  Bruno Haible  <bruno@clisp.org>
689         Exploit the mincore() system call where available.
690         * src/stackvma-mincore.c: New file.
691         * src/Makefile.am (EXTRA_DIST): Add it.
692         * src/stackvma.h: Add double-inclusion guard.
693         * src/stackvma-freebsd.c: If mincore() is available, include also
694         stackvma-mincore.c.
695         (sigsegv_get_vma): If mincore() is available, use it as fallback.
696         * src/stackvma-linux.c: If mincore() is available, include also
697         stackvma-mincore.c.
698         (sigsegv_get_vma): If mincore() is available, use it as fallback.
699         * src/stackvma-procfs.c: If mincore() is available, include also
700         stackvma-mincore.c.
701         (sigsegv_get_vma): If mincore() is available, use it as fallback.
702         * configure.ac: Test for mincore.
703         (CFG_STACKVMA): Set to stackvma-mincore.c if nothing else is available.
705 2006-05-14  Bruno Haible  <bruno@clisp.org>
707         * src/stackvma-simple.c: New file, extracted from handler-unix.c.
708         * src/Makefile.am (EXTRA_DIST): Add it.
709         * src/stackvma-beos.c: Include stackvma-simple.c.
710         (sigsegv_get_vma): Fill the vma's is_near_this field.
711         * src/stackvma-freebsd.c: Include stackvma-simple.c.
712         (sigsegv_get_vma): Fill the vma's is_near_this field.
713         * src/stackvma-linux.c: Include stackvma-simple.c.
714         (sigsegv_get_vma): Fill the vma's is_near_this field.
715         * src/stackvma-mach.c: Include stackvma-simple.c.
716         (sigsegv_get_vma): Fill the vma's is_near_this field.
717         * src/stackvma-procfs.c: Include stackvma-simple.c.
718         (sigsegv_get_vma): Fill the vma's is_near_this field.
719         * src/stackvma.h (vma_struct): Add is_near_this field.
720         * src/handler-unix.c (sigsegv_handler): Use the vma's is_near_this
721         function.
723 2006-04-28  Bruno Haible  <bruno@clisp.org>
725         * Version 2.3 released.
727 2006-04-28  Bruno Haible  <bruno@clisp.org>
729         * configure.ac: Bump version number to 2.3.
730         * src/sigsegv.h.in (LIBSIGSEGV_VERSION): Likewise.
732         * build-aux/config.guess, build-aux/config.sub: Update to GNU version
733         2006-04-26.
735         * build-aux/install-sh: Update from automake-1.9.6.
736         * build-aux/missing: Likewise.
738         * build-aux/ltmain.sh: Update from libtool-1.5.22.
739         * m4/libtool.m4: Likewise.
741 2006-04-28  Bruno Haible  <bruno@clisp.org>
743         * build-aux: Renamed from autoconf.
744         * configure.ac (AC_CONFIG_AUX_DIR): Set to build-aux.
746 2006-04-22  Bruno Haible  <bruno@clisp.org>
748         * configure.ac: Renamed from configure.in.
750 2006-04-21  Bruno Haible  <bruno@clisp.org>
752         * src/machfault-macos-i386.h: Rewritten for Darwin 8.6.1.
753         * configure.in: Change FAULT_CONTEXT for i?86-darwin.
755 2005-06-21  Paolo Bonzini  <bonzini@gnu.org>
757         * configure.in: For handler-macos.c, include mach/thread_status.h.
758         * configure: Regenerate.
760 2005-06-21  Paolo Bonzini  <bonzini@gnu.org>
762         * tests/stackoverflow1.c (recurse): Make more resilient to compiler
763         optimization.
764         (recurse_1): New.
765         * tests/stackoverflow2.c: Likewise.
767 2005-05-24  Bruno Haible  <bruno@clisp.org>
769         * src/handler-win32.c (main_exception_filter): Copy CONTEXT structure
770         to safe area on the stack.
771         Based on patch by Doug Currie <e@flavors.com>.
773         * src/handler-win32.c (main_exception_filter): Swap arguments passed
774         to stack_overflow_handler.
775         Patch by Doug Currie <e@flavors.com>.
777         * src/handler-win32.c (main_exception_filter): Align %esp on a 16-byte
778         boundary.
780 2005-03-02  Bruno Haible  <bruno@clisp.org>
782         * Version 2.2 released.
784 2005-03-02  Bruno Haible  <bruno@clisp.org>
786         * autoconf/config.guess: Update.
787         * autoconf/config.sub: Update.
788         * autoconf/missing: Update from automake-1.9.5.
790         * m4/libtool.m4: Upgrade to libtool-1.5.14 with gettext modifications.
791         * autoconf/ltmain.sh: Likewise.
793 2005-03-02  Bruno Haible  <bruno@clisp.org>
795         * src/fault-aix5.h: New file.
796         * src/fault-aix5-powerpc.h: New file.
797         * src/Makefile.am (noinst_HEADERS): Add them.
798         * configure.in: Choose them when the POSIX test succeeds on AIX.
800         * src/fault-aix3-powerpc.h: Renamed from src/fault-aix-powerpc.h.
801         * src/fault-aix3.h: Renamed from src/fault-aix.h.
802         * src/Makefile.am (noinst_HEADERS): Update.
803         * configure.in: Update. When cross-compiling, assume the AIX test
804         succeeds only on AIX 3 and AIX 4.
806 2005-03-01  Bruno Haible  <bruno@clisp.org>
808         * configure.in: Fix test of CFG_MACHFAULT.
810 2005-02-27  Bruno Haible  <bruno@clisp.org>
812         * configure.in: Skip tests that are not needed on MacOS X >= 10.2.
813         * m4/sigaltstack.m4 (SV_SIGALTSTACK): Don't perform the test on
814         MacOS X >= 10.2.
816 2005-02-18  Bruno Haible  <bruno@clisp.org>
818         * tests/sigsegv1.c (handler_called): Declare as volatile.
819         * tests/sigsegv2.c (logcount, logdata): Likewise.
820         * tests/stackoverflow1.c (pass): Likewise.
821         * tests/stackoverflow2.c (pass): Likewise.
823 2005-01-29  Bruno Haible  <bruno@clisp.org>
825         * src/sigsegv.h.in (LIBSIGSEGV_VERSION): New macro.
826         (libsigsegv_version): New declaration.
827         * src/version.c: New file.
828         * src/Makefile.am (libsigsegv_la_SOURCES): Add version.c.
829         * Makefile.msvc (OBJECTS): Add version.obj.
830         (version.obj): New rule.
831         Suggested by Sam Steingold.
833 2004-08-25  Bruno Haible  <bruno@clisp.org>
835         * m4/libtool.m4: Upgrade to libtool-1.5.6.
836         * autoconf/ltmain.sh: Upgrade to libtool-1.5.6.
838 2004-08-18  Bruno Haible  <bruno@clisp.org>
840         * configure.in: Bump version number to 2.2.
842 2004-08-17  Bruno Haible  <bruno@clisp.org>
844         Finish the Mach-based MacOS X support.
845         * src/handler-macos.c: Don't include mach/vm_map.h.
846         Include machfault.h instead of fault.h.
847         (save_exc_state): Remove variable.
848         (save_thread_state): New variable.
849         (terminating_handler): New function.
850         (altstack_handler): Pass the save_thread_state, not the save_exc_state,
851         to the user's handler.
852         (catch_exception_raise): Make it work also for platforms which don't
853         have an exc_state type. Call SIGSEGV_FAULT_ADDRESS with 2 arguments.
854         Don't clobber the exc_state; instead set the thread's program counter
855         to terminating_handler or altstack_handler, depending on the case.
856         Return KERN_SUCCESS at the end.
857         * src/machfault.h: New file.
858         * src/machfault-macos-powerpc.h (SIGSEGV_FAULT_ADDRESS): Add a second
859         argument.
860         * src/machfault-macos-i386.h: New file.
861         * src/Makefile.am (EXTRA_DIST): Add handler-macos.c.
862         (NOINST_HEADERS): Add machfault.h, machfault-macos-i386.h,
863         machfault-macos-powerpc.h.
864         * configure.in (CFG_HANDLER): Initialize to empty.
865         (CFG_MACHFAULT): New substituted variable.
866         On MacOS X PowerPC+i386, use CFG_HANDLER=handler-macos.c
867         unconditionally.
868         (sv_cv_fault_include, sv_cv_have_stack_overflow_recovery): Set
869         correctly also in the handler-macos.c case.
871 2004-08-16  Bruno Haible  <bruno@clisp.org>
873         Support for MacOS X 10.3 on PowerPC.
874         * src/fault-macosdarwin5-powerpc.h: Renamed from
875         src/fault-macos-powerpc.h.
876         * src/fault-macosdarwin5-powerpc.c: Renamed from
877         src/fault-macos-powerpc.c.
878         * src/fault-macosdarwin7-powerpc.h: New file.
879         * src/fault-macosdarwin7-powerpc.c: New file.
880         * src/Makefile.am (noinst_HEADERS): Update.
881         * configure.in: Test the method for MacOSX/Darwin5 PowerPC only after
882         the method for MacOSX/Darwin7 PowerPC failed.
883         Substitute FAULT_CONTEXT_INCLUDE2.
884         * src/sigsegv.h.in: Insert @FAULT_CONTEXT_INCLUDE2@.
885         * src/Makefile.am (sigsegv.h.msvc): Replace @FAULT_CONTEXT_INCLUDE2@.
887 2003-12-09  Paolo Bonzini  <bonzini@gnu.org>
889         * src/handler-macos.c: Completed; removed dependency on
890         signals.
891         * src/machfault-macos-powerpc.h: Reorganized.
893 2003-12-08  Paolo Bonzini  <bonzini@gnu.org>
894             Bruno Haible  <bruno@clisp.org>
896         * src/handler-macos.c: New file.
897         * src/machfault.h: New file.
898         * src/machfault-macos-powerpc.h: New file.
900 2003-12-05  Bruno Haible  <bruno@clisp.org>
902         * m4/fault.m4: Tweak indentation. Bump serial number.
903         * m4/getpagesize.m4: Likewise.
904         * m4/mmap-anon.m4: Likewise.
905         * m4/sigaltstack.m4: Likewise.
906         * m4/sigaltstack-longjmp.m4: Likewise.
907         * m4/sigaltstack-siglongjmp.m4: Likewise.
909 2003-12-05  Paolo Bonzini  <bonzini@gnu.org>
911         * aclocal.m4: Regenerate with Automake 1.7h.
912         * configure.in: Drop m4/Makefile from list of generated files.
913         * configure: Regenerate.
914         * Makefile.am (install-data-hook): New name of the install-am
915         target, for Automake 1.8 compatibility.  Other -am targets
916         are not affected because Automake does not have anything to
917         do to make them.
918         (AUTOMAKE_OPTIONS): Bump minimum Automake requirement to 1.7h.
919         (SUBDIRS): Remove m4.
920         ($(srcdir)/config.h.msvc): New target for config.h.msvc.
921         * Makefile.in: Regenerate with Automake 1.7h.
922         * m4/Makefile.am: Delete, Automake 1.7h takes care of it.
923         * m4/Makefile.in: Delete.
924         * src/Makefile.am (installdirs): Delete, Automake 1.7h adds it.
925         * src/Makefile.in: Regenerate with Automake 1.7h.
926         * tests/Makefile.in: Regenerate with Automake 1.7h.
928         * autoconf/config.guess: Update from automake-1.7h.
929         * autoconf/config.sub: Likewise.
930         * autoconf/install.sh: Likewise.
931         * autoconf/missing: Likewise.
932         * autoconf/mkinstalldirs: Delete.
933         * m4/fault.m4: autoupdate and manually tweak.
934         * m4/sigaltstack.m4: Likewise.
935         * m4/sigaltstack-longjmp.m4: Likewise.
936         * m4/sigaltstack-siglongjmp.m4: Likewise.
937         * m4/mmap-anon.m4: Likewise.
938         * m4/getpagesize.m4: Likewise.
940 2003-10-29  Bruno Haible  <bruno@clisp.org>
942         * tests/sigsegv1.c (main): Add a check whether mprotect with
943         PROT_READ_WRITE really works.
944         * tests/sigsegv2.c (main): Likewise.
945         Reported by Ullal Devappa Kini <wmbfqj@vsnl.net>.
947 2003-08-21  Bruno Haible  <bruno@clisp.org>
949         * Version 2.1 released.
951 2003-06-24  Paolo Bonzini  <bonzini@gnu.org>
953         * m4/fault.m4: Exit if we detect an infinite loop.
954         * aclocal.m4: Regenerate.
955         * configure: Regenerate.
957 2003-06-18  Bruno Haible  <bruno@clisp.org>
959         * autoconf/install-sh: Update from automake-1.7.5.
961 2003-05-14  Paolo Bonzini  <bonzini@gnu.org>
963         * configure.in: Use signals-bsd.h for OpenBSD and NetBSD too.
964         Support instruction decoding to get fault address for Alphas.
965         * src/fault-netbsd-alpha.h: New file.
966         * src/fault-netbsd-alpha.c: New file.
967         * src/Makefile.am (noinst_HEADERS): Add them.
969 2003-05-14  Paolo Bonzini  <bonzini@gnu.org>
971         * src/dispatcher.c (insert): Fix lossage in 64-bit environments
972         (cast from void* to unsigned int).
974 2003-05-10  Bruno Haible  <bruno@clisp.org>
976         * tests/Makefile.am (../src/libsigsegv.la): New rule.
978         * Makefile.msvc (handler.obj): Complete the dependencies.
979         (stackoverflow2.exe): New rule.
980         (check): Depend on it.
981         (clean): Remove it.
983 2003-05-10  Paolo Bonzini  <bonzini@gnu.org>
984             Bruno Haible  <bruno@clisp.org>
986         * configure.in: AC_SUBST of CFG_STACKVMA, CFG_LEAVE, CFG_HANDLER.
987         * src/Makefile.am: Add dependencies for the object files.
989 2003-05-08  Paolo Bonzini  <bonzini@gnu.org>
991         * configure.in: Add $srcdir/ to #include statements. Needed when
992         builddir != srcdir.
994         * src/signals-macos.h (SIGSEGV_FOR_ALL_SIGNALS): Add SIGSEGV.
996 2003-05-03  Paolo Bonzini  <bonzini@gnu.org>
998         * configure.in: Tweak 2003-04-26 patch so that it works on mingw32 and
999         Cygwin.
1001 2003-05-02  Bruno Haible  <bruno@clisp.org>
1003         * src/handler-unix.c: Add special case for stack handling on IA-64.
1004         * src/fault-linux-ia64.h: Complete the port.
1005         * configure.in: Improve Linux/IA-64 support.
1007 2003-05-01  Bruno Haible  <bruno@clisp.org>
1009         * configure.in: Don't use fault-hurd.h on NetBSD/alpha. It does not
1010         work.
1012 2003-05-01  Bruno Haible  <bruno@clisp.org>
1014         Support for Linux/HPPA.
1015         * fault-linux-hppa.h: Don't include <siginfo.h>.
1016         (SIGSEGV_FAULT_ADDRESS): Change.
1017         (SIGSEGV_FAULT_ADDRESS_FROM_SIGINFO): Define it, otherwise the value
1018         passed for sip is 0.
1019         (SIGSEGV_FAULT_CONTEXT, SIGSEGV_FAULT_STACKPOINTER): Remove macros.
1020         * configure.in: Improve Linux/HPPA support.
1022 2003-05-01  Bruno Haible  <bruno@clisp.org>
1024         Support for OpenBSD/i386.
1025         * src/fault-openbsd.h: New file.
1026         * src/fault-openbsd-i386.h: New file.
1027         * src/Makefile.am (noinst_HEADERS): Add them.
1028         * configure.in: If the POSIX test works and the OS is OpenBSD, use
1029         fault-openbsd.h instead of fault-posix.h.
1031 2003-05-01  Bruno Haible  <bruno@clisp.org>
1033         * src/fault-hpux-hppa.h: Make it work on machines with 64-bit registers
1034         as well.
1035         * configure.in: Likewise.
1037 2003-04-29  Bruno Haible  <bruno@clisp.org>
1039         * configure.in: Define HAVE_STACKVMA if CFG_STACKVMA is nontrivial.
1040         * src/handler-unix.c: Test HAVE_STACKVMA instead of CFG_STACKVMA.
1042         * m4/fault.m4 (SV_TRY_FAULT): On HP-UX, always pass 0 as first argument
1043         of mmap().
1044         * tests/mmaputil.h (mmap_zeromap): Likewise.
1046 2003-04-28  Bruno Haible  <bruno@clisp.org>
1048         * src/stackvma-freebsd.c (sigsegv_get_vma): Fix logic error.
1050 2002-04-17  Paolo Bonzini  <bonzini@gnu.org>
1052         Support for Cygwin.
1053         * configure.in: Treat cygwin* like mingw*.
1054         * src/handler-win32.c [CYGWIN] (exception_list, _except_list,
1055         debug_get_except_list, cygwin_exception_handler,
1056         libsigsegv_exception_handler, do_install_main_exception_filter): New
1057         definitions.
1058         (install_main_exception_filter): New function.
1059         (sigsegv_install_handler, stackoverflow_install_handler): Call it.
1061 2003-04-26  Bruno Haible  <bruno@clisp.org>
1063         * configure.in: Don't set sv_cv_have_stack_overflow_recovery=yes if
1064         not all of the fault-*.h and stackvma-*.h premises are fulfilled.
1065         Reported by Paolo Bonzini <bonzini@gnu.org> for NetBSD/Alpha.
1067 2003-04-03  Bruno Haible  <bruno@clisp.org>
1069         * configure.in: Add --enable-relocatable option.
1070         * m4/relocatable.m4: New file, from GNU gettext.
1071         * m4/Makefile.am (EXTRA_DIST): Add it.
1073         * m4/libtool.m4: Update from GNU gettext, based on libtool-1.4.3.
1074         * autoconf/ltmain.sh: Likewise.
1076 2003-04-02  Bruno Haible  <bruno@clisp.org>
1078         * configure.in: Bump version number to 2.1.
1080         * tests/stackoverflow2.c: New file, based on code by Paolo Bonzini.
1081         * tests/Makefile.am (TESTS, noinst_PROGRAMS): Add stackoverflow2.
1083 2003-04-02  Paolo Bonzini  <bonzini@gnu.org>
1084             Bruno Haible  <bruno@clisp.org>
1086         Complete the port to MacOS X (Darwin).
1087         * m4/fault.m4: Include sys/signal.h. Have an exit status of 3 instead
1088         of 1 if fault_address is misdetected.
1089         * m4/sigaltstack.m4: Define stack_t to struct sigaltstack if absent.
1090         Include <sys/signal.h>.
1091         * configure.in: Add check for sys/signal.h.
1092         Add support for catching stack overflow on MacOSX.
1093         Add support for MacOSX on i386.
1094         Provide a fallback for SS_ONSTACK before using it.
1095         * src/fault-macos-i386.h: New file.
1096         * src/stackvma-mach.c: New file.
1097         * src/fault-macos-powerpc.h (SIGSEGV_FAULT_STACKPOINTER): Change.
1098         * src/handler-unix.c: Include <sys/signal.h>.
1099         (SS_DISABLE): Provide a fallback.
1100         * src/leave-sigaltstack.c: Include sys/signal.h.
1101         (SS_ONSTACK): Provide a fallback.
1102         * src/Makefile.am (noinst_HEADERS): Add fault-macos-i386.h.
1103         (EXTRA_DIST): Add stackvma-mach.c.
1104         * tests/sigsegv1.c: Abort after 10 handler invocations.
1105         (main): Drop SKIP message, now emitted by automake 1.7.x.
1106         * tests/sigsegv2.c: Abort after 10 handler invocations.
1107         (main): Drop SKIP message, now emitted by automake 1.7.x.
1108         * tests/stackoverflow1.c (main): Drop SKIP message, now emitted by
1109         automake 1.7.x.
1111 2002-10-14  Bruno Haible  <bruno@clisp.org>
1113         * src/fault-none.h: New file.
1114         * src/fault.h: Include CFG_FAULT unconditionally.
1115         * src/leave-none.c: New file.
1116         * src/leave.c: Include CFG_LEAVE unconditionally.
1117         * src/stackvma.c: Include CFG_STACKVMA unconditionally.
1118         * configure.in (CFG_LEAVE, CFG_STACKVMA): Define always.
1119         * src/Makefile.am (noinst_HEADERS): Add fault-none.h.
1120         (EXTRA_DIST): Add leave-none.c.
1121         Reported by Paolo Bonzini <bonzini@gnu.org>.
1123 2002-09-30  Bruno Haible  <bruno@clisp.org>
1125         * src/Makefile.am (noinst_HEADERS): Add fault-hurd.h,
1126         fault-linux-m68k.c, fault-macos-powerpc.h, fault-macos-powerpc.c,
1127         signals-hurd.h, signals-macos.h.
1129 2002-09-30  Bruno Haible  <bruno@clisp.org>
1131         * Makefile.am (check-next): Don't ask for reports from i?86-*-linux*
1132         platforms.
1134 2002-09-30  Bruno Haible  <bruno@clisp.org>
1136         Better Linux/PowerPC support.
1137         * configure.in: Change Linux/PowerPC support.
1138         * src/fault-linux-powerpc.h (SIGSEGV_FAULT_ADDRESS): New macro.
1140 2002-09-30  Bruno Haible  <bruno@clisp.org>
1142         Better Linux/m68k support.
1143         * configure.in: Change Linux/m68k support.
1144         * src/fault-linux-m68k.c: New file.
1145         * src/fault-linux-m68k.h: Use it.
1147 2002-09-30  Bruno Haible  <bruno@clisp.org>
1149         Tentative Hurd support.
1150         * configure.in: Add Hurd support.
1151         * src/signals-hurd.h: New file.
1152         * src/fault-hurd.h: New file.
1154 2002-09-30  Bruno Haible  <bruno@clisp.org>
1156         MacOSX/PowerPC support.
1157         * configure.in: Add MacOSX/PowerPC support.
1158         * src/signals-macos.h: New file.
1159         * src/fault-macos-powerpc.c: New file.
1160         * src/fault-macos-powerpc.h: New file.
1162 2002-09-16  Bruno Haible  <bruno@clisp.org>
1164         * src/fault-posix.h: Don't include <siginfo.h>. Needed for hppa-linux.
1165         Reported by Will Newton <will@misconception.org.uk>.
1167 2002-08-28  Bruno Haible  <bruno@clisp.org>
1169         * Version 2.0 released.
1171 2002-07-28  Bruno Haible  <bruno@clisp.org>
1173         Big reorganization and rewrite. Every file changed.