From patchwork Thu Nov 20 22:00:13 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Roland McGrath X-Patchwork-Id: 3824 Received: (qmail 12059 invoked by alias); 20 Nov 2014 22:00:17 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 12042 invoked by uid 89); 20 Nov 2014 22:00:17 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.2 required=5.0 tests=AWL, BAYES_00 autolearn=ham version=3.3.2 X-HELO: topped-with-meat.com MIME-Version: 1.0 From: Roland McGrath To: "GNU C. Library" Subject: [COMMITTED PATCH] NPTL: Use __libc_fatal in unwind.c. Message-Id: <20141120220014.0CD5F2C3B2D@topped-with-meat.com> Date: Thu, 20 Nov 2014 14:00:13 -0800 (PST) X-CMAE-Score: 0 X-CMAE-Analysis: v=2.1 cv=SvUDtp+0 c=1 sm=1 tr=0 a=WkljmVdYkabdwxfqvArNOQ==:117 a=14OXPxybAAAA:8 a=kj9zAlcOel0A:10 a=hOe2yjtxAAAA:8 a=mDV3o1hIAAAA:8 a=PZq7DgDOISr2GtXR4RkA:9 a=CjuIK1q_8ugA:10 Both gratuitous Linuxism and failing to use all the nice fancy abort handling we already have implemented. Thanks, Roland * nptl/unwind.c (unwind_cleanup): Use __libc_fatal. --- a/nptl/unwind.c +++ b/nptl/unwind.c @@ -18,6 +18,7 @@ . */ #include +#include #include #include #include @@ -103,11 +104,7 @@ unwind_cleanup (_Unwind_Reason_Code reason, struct _Unwind_Exception *exc) { /* When we get here a C++ catch block didn't rethrow the object. We cannot handle this case and therefore abort. */ -# define STR_N_LEN(str) str, strlen (str) - INTERNAL_SYSCALL_DECL (err); - INTERNAL_SYSCALL (write, err, 3, STDERR_FILENO, - STR_N_LEN ("FATAL: exception not rethrown\n")); - abort (); + __libc_fatal ("FATAL: exception not rethrown\n"); } #endif /* have forced unwind */