Message ID | 20231211135401.1227845-1-poulhies@adacore.com |
---|---|
State | Accepted |
Headers |
Return-Path: <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:bcd1:0:b0:403:3b70:6f57 with SMTP id r17csp7063034vqy; Mon, 11 Dec 2023 05:54:50 -0800 (PST) X-Google-Smtp-Source: AGHT+IGYzgeRUCDtnS0ebx9z/oxEdBXLfAaZd5mzqzGnf1WslQHhZwvpS5qGsKbum5hjU82b9bmh X-Received: by 2002:a05:6214:5c3:b0:67a:a721:7848 with SMTP id t3-20020a05621405c300b0067aa7217848mr5199777qvz.109.1702302890072; Mon, 11 Dec 2023 05:54:50 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1702302890; cv=pass; d=google.com; s=arc-20160816; b=U78XWlKutzHHcbfEcu6y0kPjGWU33gSkVYEJLH10fW/z2UfnXGa78Vg062Ji30EIjG DGWZLB8tlozw6kLDT4z9N+5T+Gr9mC8UKGn5ZLsxkFdWl15kYnS7/L75Lgb6z+rDHxFq g2o0yPFubrHlsrU/Qn9CK8r41qWEXM7Dpv5Xu4dFuxcgzEZGHTA9QOPXQzi+7x2h2O0e XlMC28uz62vy7PDH5tJTJ7WyFah03If02QZvMcS+aycbNzHf+lbjn/JpNwlPHPYf9xpg lEeRRexOMX8cLsKpMuQ/FowS1uMRWnMOOby22IZR5A91aNzlzcSyNqb7HS3aKAiQV7Se 1/vg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature:arc-filter:dmarc-filter:delivered-to; bh=cx/pCVBjN5aSdYSBsf1dkGEWKpXmLR36+afAGeV3M/0=; fh=FGhZCTZb41/3i4HAAW34eOebTPoQTLnBhrBL0m4RLwU=; b=GTbcCRT4kBG7lwEfhedG2KtbYqprTutkjgQs/JmJZ6CowXVlht0UntXauvwzaGbARP 4u2gDz/z/uo6f6EcZcKGsWcPhOmcRjyLHgHT/81aCBN0UL3HLOxw5r8J0tKq23MlxXgm 5m+vKVF33AN5g31x2rPou+UTn1dupbgqCwI0kIt+EHqbJfPtMa5OZJa2Y7iE/ZdID6J2 VdbhtzotdENi26kQLopXp2sQQnX/WvkDBvNxvBRgnk8sqIum5GW9uy7OT+Lyq23DGKIa unHha7esuM7Q8wrCbBSqTR14e1VzFo0ReJY1N1pXqvCSL+jxuVFPS0BBeJf9T+fH6vyB I/4Q== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@adacore.com header.s=google header.b=clE6r+EX; arc=pass (i=1); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=adacore.com Received: from server2.sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id dn12-20020a05622a470c00b0042585e20c2csi7537177qtb.680.2023.12.11.05.54.50 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Dec 2023 05:54:50 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@adacore.com header.s=google header.b=clE6r+EX; arc=pass (i=1); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=adacore.com Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id D421D3858284 for <ouuuleilei@gmail.com>; Mon, 11 Dec 2023 13:54:49 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-wm1-x335.google.com (mail-wm1-x335.google.com [IPv6:2a00:1450:4864:20::335]) by sourceware.org (Postfix) with ESMTPS id 452733858C50 for <gcc-patches@gcc.gnu.org>; Mon, 11 Dec 2023 13:54:26 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 452733858C50 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=adacore.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=adacore.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 452733858C50 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::335 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1702302867; cv=none; b=I/VW0TPMH0I/Jejmb4mGckC889xrcHgnxRbpp5bx/eFRRpmCvoCk+C7n+WU0NYs0rJxjoVXQ8jOr/dKL6Ye1tzX3EaFNTWBZXTNvISVfIkm7QKUIik7uOAaRxQ3nv1Axi0PreviEafmtMI7bu/RNfiJHhBE/1c1JSr+yHp9Mjqg= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1702302867; c=relaxed/simple; bh=AgrDusQ5BbcekB0xI70Tg2YHWEWFo9mWJuOzsA9TbbY=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=HGimGbLLWGxtKrbomFK8q7WxbetXGVbynuNc8jW4eh6GPq06nAs1HcFkHyxbVwInjip1H/CxaMYapU2UdUseyFWxq60VxQ/7ZJ86ukQxzch07cDDo7QiV2wSVhAQScQyIXO4vqXpGddaZ8e5t29Duaaknj118z8Dt6LxIwXe+P8= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-wm1-x335.google.com with SMTP id 5b1f17b1804b1-40c3ceded81so20420785e9.1 for <gcc-patches@gcc.gnu.org>; Mon, 11 Dec 2023 05:54:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=adacore.com; s=google; t=1702302865; x=1702907665; darn=gcc.gnu.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=cx/pCVBjN5aSdYSBsf1dkGEWKpXmLR36+afAGeV3M/0=; b=clE6r+EX0ICevxUWdyyfcMPOfgBxq2Zuebk38uSghUHQK3oWKIDMkptK70uRJhU7E8 5Y0tRY+tAQESGr/oIQ7p/pv/0aHoIeRL59srPQWTDkRKgmtaKYqhjDULQDvtUrkhmI0T nDieZ4MI03v9EJCeI4MPVHRmpfeSocVd8wEecdzIsrraoKdiF6b7COyJRtyTf0VHb0cH qoa3jt830I3gc0XRkviclOoZs7VgXcHbynMxraMOXZ+Cr/PiNOOyAL5IVrxM4xmRsF5M /eQ00SEivyOmy5uVFIOs1wOYgYLo5oGttxEZ9fdbywtEKEyHXwSf7m+LPLFpVziXckI9 qGTQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702302865; x=1702907665; 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=cx/pCVBjN5aSdYSBsf1dkGEWKpXmLR36+afAGeV3M/0=; b=I2e1hQi+1HyYVvhN7taVWfPFYly3IDZWGUXBEbeqXhgZ4RMJndB3/SyVgfS60Adj/D Lb/hkTkzv8As6ctB4OiY+z+o43qtHyRq7AJms+VTl8mx0vlp1xwe7JHbmBntHn3NkpGm 6X/IC3RU12OAqEoMTBWmHChiO3Jge3ca1LnQyYQf9Q7UCuu4Jz/JPzUJBNZZcFwV9NKo N89LldgilRA77fAuLJTIle+UxMM0HYx4qckDeyxgIx8abTNQhSkhV/DrAIa2lG7pAnKE taTvVgTGvW8UrjXZ7LSYHJ/mSLo+feuX7vgqREmChGxldMZ0jvdSJiLUBQFTuCl1ePbj r2xw== X-Gm-Message-State: AOJu0YwpcecfXZ9T4OrJiwXPVmOlxxqFlhyAomLqgeVUlaX9ju4M5S6p u+bL+ZakohcYJX50p4d9S1xtSA== X-Received: by 2002:a1c:7210:0:b0:40c:3ea4:c0fe with SMTP id n16-20020a1c7210000000b0040c3ea4c0femr1582031wmc.100.1702302864934; Mon, 11 Dec 2023 05:54:24 -0800 (PST) Received: from localhost.localdomain ([2001:861:3382:1a90:8b19:c9ae:7eff:74a]) by smtp.gmail.com with ESMTPSA id fs27-20020a05600c3f9b00b0040b36050f1bsm12767223wmb.44.2023.12.11.05.54.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Dec 2023 05:54:24 -0800 (PST) From: =?utf-8?q?Marc_Poulhi=C3=A8s?= <poulhies@adacore.com> To: jakub@redhat.com Cc: gcc-patches@gcc.gnu.org, poulhies@adacore.com Subject: [PATCH v2] testsuite: adjust call to abort in excess-precision-12 Date: Mon, 11 Dec 2023 14:35:52 +0100 Message-ID: <20231211135401.1227845-1-poulhies@adacore.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <ZXH2aUp6hCKHDl5d@tucnak> References: <ZXH2aUp6hCKHDl5d@tucnak> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-12.4 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, KAM_NUMSUBJECT, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, 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: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gcc-patches mailing list <gcc-patches.gcc.gnu.org> List-Unsubscribe: <https://gcc.gnu.org/mailman/options/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe> List-Archive: <https://gcc.gnu.org/pipermail/gcc-patches/> List-Post: <mailto:gcc-patches@gcc.gnu.org> List-Help: <mailto:gcc-patches-request@gcc.gnu.org?subject=help> List-Subscribe: <https://gcc.gnu.org/mailman/listinfo/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe> Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1784641220098841854 X-GMAIL-MSGID: 1784993955602680408 |
Series |
[v2] testsuite: adjust call to abort in excess-precision-12
|
|
Checks
Context | Check | Description |
---|---|---|
snail/gcc-patch-check | success | Github commit url |
Commit Message
Marc Poulhiès
Dec. 11, 2023, 1:35 p.m. UTC
On non-hosted targets, cstdlib may not be sufficient to have abort defined, but it should be for std::abort. gcc/testsuite/ChangeLog: * g++.target/i386/excess-precision-12.C: call std::abort instead of abort. --- Changed from calling __builtin_abort to std::abort, as advised. Ok for master? Thanks, Marc gcc/testsuite/g++.target/i386/excess-precision-12.C | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
Comments
On Mon, Dec 11, 2023 at 02:35:52PM +0100, Marc Poulhiès wrote: > On non-hosted targets, cstdlib may not be sufficient to have abort > defined, but it should be for std::abort. > > gcc/testsuite/ChangeLog: > > * g++.target/i386/excess-precision-12.C: call std::abort instead of abort. > --- > Changed from calling __builtin_abort to std::abort, as advised. > > Ok for master? Ok. Jakub
diff --git a/gcc/testsuite/g++.target/i386/excess-precision-12.C b/gcc/testsuite/g++.target/i386/excess-precision-12.C index dff48c07c8b..7cfd15d6136 100644 --- a/gcc/testsuite/g++.target/i386/excess-precision-12.C +++ b/gcc/testsuite/g++.target/i386/excess-precision-12.C @@ -13,8 +13,8 @@ main (void) unsigned long long int u = (1ULL << 63) + 1; if ((f <=> u) >= 0) - abort (); + std::abort (); if ((u <=> f) <= 0) - abort (); + std::abort (); }