From patchwork Fri Dec 13 07:13:08 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "H.J. Lu" X-Patchwork-Id: 102955 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 1A81D3858C52 for ; Fri, 13 Dec 2024 07:14:19 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-oi1-x236.google.com (mail-oi1-x236.google.com [IPv6:2607:f8b0:4864:20::236]) by sourceware.org (Postfix) with ESMTPS id 62FCB385840F for ; Fri, 13 Dec 2024 07:13:20 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 62FCB385840F Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 62FCB385840F Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::236 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1734074000; cv=none; b=Za5Pfn8ZgEA1HwGc2pYMCUrzKkY5zE1O4K2H6PW0rN3GAayWrm4iR0Vbgxs9SHWVB24DW3bW1t6YTRfP8RP3B1Cpfz0eFjhHM8ytp7PpK0XY3RcHKInAmEy+j4AAaVrNaYIUZPka5KxkqsWhKA+iWYpAAOdbPBRk2j1tgYqaTFw= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1734074000; c=relaxed/simple; bh=uHuT+3DPC9J/eHWf11kB9//fwMmxo5sxNUrWFf8LTVc=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=FFqkIKWYkEHwEa5Bmr+dfcO0eYHMR18aoCeB6RireSBrIqUYGbpo8FE77DSXydRw/x6zbXcdEMee6UkeuITpecamtb2FTZ0/TS1k0A1GT1y0ycqc52obsDIuIcq6EqFFHVvtt4hOPS0Tj91S/r9OnYSNE108J0450ute95TLn2w= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-oi1-x236.google.com with SMTP id 5614622812f47-3eb6210742aso739004b6e.1 for ; Thu, 12 Dec 2024 23:13:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1734073999; x=1734678799; darn=sourceware.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=5P9+KONKS+Qj8lu4isyXTpp4gPnp5HT/MNUYdQcSF6A=; b=GHCYc6Y58IM5cDtEyRDWCRCAn/NCe5FQ/05sbOOP8jr2W07NuZVz8+6QnZVYAg+Gip bhH2G4G7f1/7Ro5/IFXaOuOweoPM08zdfgKRHSpTswCYrlsEz/qGpOT/l+s8rmUbpW5j dWbtcyWUkVZrVhqdRVO4ekvXuqIedyOAKiBmOZ9OAXphEiOBWkCuOeK5XQbqKKub88kX WOe4SMlwbsH3tsYF3o+/PBogXspc5/PlAuAXd5LSEMKDtsHtbbTKE4gCgyjyHVbyjw5j UV9MLPJ2sNSVMP7vHFPBjZenn55LNy861rBzKP8cUoawc5z5ldlxpeJNotFvNlWmAF/+ /L3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734073999; x=1734678799; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=5P9+KONKS+Qj8lu4isyXTpp4gPnp5HT/MNUYdQcSF6A=; b=TP8ZryuNMFc2QKXWR9J6TIVZT0XXa4p5x3Yj0nFtZrq88q2UeU0RClEgBwBnC7SkLU XdPAyPPTEXs/OjYBCRkBWVUgFEcR1dP25sMjJvUGDsEL4onmJAI1AzwDGCwWzQclQevU c6lF8Uj+iZoy8MX/PHCbVY60oTlytmZru/SA9fddqOtQHgBh2Eor8xGRj6wdWyZs1x5O a8X5qx4o54KpVMJ+gnmifcL5+xvmnitMaIUt1aCZuPeZW8XqCV+R8DpCeEe7Ky9l/dsN OmgGmxN5eX9PiOON/StQiqaOdCMecdZH5JdVayyxP9oAEUdHIYF3SiI2XI4wEHR0Yz6w 13Cg== X-Gm-Message-State: AOJu0YyhP3wJetjBe7nBC3tNuNn6Aw415BwOvqvgZoXpo1O4NNgtcBWH xMnHXl4jcB6/Kzyx9j8dXByCL8P47/pbXoXWp9Jlk78eEMGsLENJ+C+sFgdJkxBDEeGP X-Gm-Gg: ASbGncviINGXkv3nXoi6UlZjRbY3El0QknJebvaXT2txNgHdePtZo17Zs/pfo1+qrgh b+/sSVZAvXZj2c82Ys/uQcLni6rnKq97n9PBR6w+YAzqf+aMpi4FsMUmfhUbnXE55BDZY8+/mU+ LJq6iYNw0hGdFXLqCu6Y0QoR+/k4As6yhOWLAW7MN3wipAB+k+AD/9s4JqVk42O5d7nHs7gfOWU PYYY6SXRWFeZAMfjjNjkaHoUCSxsPPf/vwrZErJ0nBLpOutoy17JdZYM2CETIH7rWHKUD2n1bZY 2gOOyU+pl2KQeOWa X-Google-Smtp-Source: AGHT+IHuHRnXOox4IiHD6A0LTyBUKcqGQ7mSaj2qdoHXRiq/C6YpgqEQ07yJnRyAN5g4peDsP0MwRg== X-Received: by 2002:a05:6808:210e:b0:3e7:bd4e:5b98 with SMTP id 5614622812f47-3eba694ca0amr684582b6e.0.1734073999543; Thu, 12 Dec 2024 23:13:19 -0800 (PST) Received: from gnu-tgl-3.localdomain ([172.58.27.218]) by smtp.gmail.com with ESMTPSA id 5614622812f47-3eb076f8bbasm4154960b6e.30.2024.12.12.23.13.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Dec 2024 23:13:18 -0800 (PST) Received: from gnu-tgl-3.. (localhost [IPv6:::1]) by gnu-tgl-3.localdomain (Postfix) with ESMTP id 25E44C0768; Fri, 13 Dec 2024 15:13:11 +0800 (CST) From: "H.J. Lu" To: libc-alpha@sourceware.org Cc: sam@gentoo.org Subject: [PATCH 08/10] tst-minsigstksz-1.c: Return EXIT_UNSUPPORTED for GCC 4.9 or older Date: Fri, 13 Dec 2024 15:13:08 +0800 Message-ID: <20241213071310.2054769-9-hjl.tools@gmail.com> X-Mailer: git-send-email 2.47.1 In-Reply-To: <20241213071310.2054769-1-hjl.tools@gmail.com> References: <20241213071310.2054769-1-hjl.tools@gmail.com> MIME-Version: 1.0 X-Spam-Status: No, score=-3019.9 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP 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.30 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 Since ATOMIC_INT_LOCK_FREE in GCC 4.9 is defined as #define ATOMIC_INT_LOCK_FREE \ __atomic_type_lock_free (atomic_int) GCC 4.9 fails to compile tst-minsigstksz-1.c: tst-minsigstksz-1.c:45:6: error: missing binary operator before token "(" # if ATOMIC_INT_LOCK_FREE != 2 ^ Change tst-minsigstksz-1.c to define TEST_ATOMIC_OPS to 0 for GCC 4.9 or older. Signed-off-by: H.J. Lu Reviewed-by: Sam James --- signal/tst-minsigstksz-1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/signal/tst-minsigstksz-1.c b/signal/tst-minsigstksz-1.c index edd165a1f3..0e068e37f8 100644 --- a/signal/tst-minsigstksz-1.c +++ b/signal/tst-minsigstksz-1.c @@ -38,7 +38,7 @@ /* We do not try to test atomic operations exhaustively, only a simple atomic counter increment. This is only safe if atomic_[u]int is unconditionally lock-free. */ -#ifdef __STDC_NO_ATOMICS__ +#if defined __STDC_NO_ATOMICS__ || !__GNUC_PREREQ (5, 0) # define TEST_ATOMIC_OPS 0 #else # include