From patchwork Fri Jun 30 16:28:24 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John David Anglin X-Patchwork-Id: 71934 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 6EB04388265E for ; Fri, 30 Jun 2023 16:28:42 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from dellerweb.de (dellerweb.de [173.249.48.176]) by sourceware.org (Postfix) with ESMTPS id 87D00388215C for ; Fri, 30 Jun 2023 16:28:28 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 87D00388215C Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=parisc-linux.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=parisc-linux.org Received: from mx3210.localdomain (unknown [142.181.186.176]) by dellerweb.de (Postfix) with ESMTPSA id 7C7D516000F8; Fri, 30 Jun 2023 18:28:26 +0200 (CEST) Received: by mx3210.localdomain (Postfix, from userid 1000) id 7DFD622012C; Fri, 30 Jun 2023 16:28:24 +0000 (UTC) Date: Fri, 30 Jun 2023 16:28:24 +0000 From: John David Anglin To: libc-alpha@sourceware.org Cc: carlos@redhat.com Subject: [PATCH] Build libsupport.a with exception and asynchronous unwind tables Message-ID: MIME-Version: 1.0 Content-Disposition: inline X-Spam-Status: No, score=-8.6 required=5.0 tests=BAYES_00, GIT_PATCH_0, KAM_DMARC_STATUS, SPF_HELO_PASS, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libc-alpha-bounces+patchwork=sourceware.org@sourceware.org Sender: "Libc-alpha" The attached change fixes the nptl/tst-cleanupx4 test on hppa. Okay to install? Dave --- support: Build with exceptions and asynchronous unwind tables [BZ #30587] Changing tst-cleanup4.c to use xread instead of read caused the nptl/tst-cleanupx4 test to fail. The routines in libsupport.a need to be built with exception handling and asynchronous unwind table support. diff --git a/support/Makefile b/support/Makefile index c81e3c928c..038d104264 100644 --- a/support/Makefile +++ b/support/Makefile @@ -239,6 +239,9 @@ CFLAGS-support_paths.c = \ -DCOMPLOCALEDIR_PATH=\"$(complocaledir)\" \ -DSYSCONFDIR_PATH=\"$(sysconfdir)\" +# Build with exception handling and asynchronous unwind table support. +override CFLAGS += -fexceptions -fasynchronous-unwind-tables + # In support_timespec_check_in_range we may be passed a very tight # range for which we should produce a correct result for expected # being within the observed range. The code uses double internally