Use -fasynchronous-unwind-tables for waitid

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

Use -fasynchronous-unwind-tables for waitid

Joseph Myers
I don't see any reason for waitid.c not be be built with
-fasynchronous-unwind-tables when other files such as wait.c and waitpid.c
use -fasynchronous-unwind-tables.  This patch adds that option and thereby
fixes nptl/tst-cancelx4 and ntpl/tst-cancelx5 for MIPS (O32), where they
previously failed with the cleanup handlers for waitid not being run.

2006-06-23  Joseph Myers  <[hidden email]>

        * posix/Makefile (CFLAGS-waitid.c): Add

Index: posix/Makefile
RCS file: /cvs/glibc/libc/posix/Makefile,v
retrieving revision 1.191
diff -u -r1.191 Makefile
--- posix/Makefile 4 Jun 2006 04:59:05 -0000 1.191
+++ posix/Makefile 23 Jun 2006 20:59:36 -0000
@@ -141,7 +141,7 @@
 CFLAGS-pwrite64.c = -fexceptions -fasynchronous-unwind-tables
 CFLAGS-sleep.c = -fexceptions
 CFLAGS-wait.c = -fexceptions -fasynchronous-unwind-tables
-CFLAGS-waitid.c = -fexceptions
+CFLAGS-waitid.c = -fexceptions -fasynchronous-unwind-tables
 CFLAGS-waitpid.c = -fexceptions -fasynchronous-unwind-tables
 CFLAGS-getopt.c = -fexceptions
 CFLAGS-wordexp.c = -fexceptions

Joseph S. Myers
[hidden email]