From patchwork Fri Jun 30 22:54:46 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: 1802163 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=sourceware.org (client-ip=8.43.85.97; helo=sourceware.org; envelope-from=libc-alpha-bounces+incoming=patchwork.ozlabs.org@sourceware.org; receiver=) Received: from sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4Qt9d51ljDz20XS for ; Sat, 1 Jul 2023 08:55:05 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id BA03B382DF0A for ; Fri, 30 Jun 2023 22:55:02 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from dellerweb.de (unknown [IPv6:2a02:c207:3003:236::1]) by sourceware.org (Postfix) with ESMTPS id D7E023858D33 for ; Fri, 30 Jun 2023 22:54:50 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org D7E023858D33 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 6963716003BD; Sat, 1 Jul 2023 00:54:48 +0200 (CEST) Received: by mx3210.localdomain (Postfix, from userid 1000) id CF60622012C; Fri, 30 Jun 2023 22:54:46 +0000 (UTC) Date: Fri, 30 Jun 2023 22:54:46 +0000 From: John David Anglin To: libc-alpha@sourceware.org Cc: carlos@redhat.com Subject: [PATCH v2] 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+incoming=patchwork.ozlabs.org@sourceware.org Sender: "Libc-alpha" The attached change fixes the nptl/tst-cleanupx4 test on hppa. Version 2 uses "CFLAGS-.oS" as suggested. Okay to install? Dave Reviewed-by: Florian Weimer --- 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. v2: Use "CFLAGS-.oS" instead of "override CFLAGS". diff --git a/support/Makefile b/support/Makefile index c81e3c928c..917a858bd1 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. +CFLAGS-.oS += -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