Message ID | 87il6eeq9v.fsf@oldenburg.str.redhat.com |
---|---|
State | Accepted |
Headers |
Return-Path: <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:8f47:0:b0:403:3b70:6f57 with SMTP id j7csp2819168vqu; Mon, 6 Nov 2023 09:38:34 -0800 (PST) X-Google-Smtp-Source: AGHT+IEBAETnSuZ+ZK/5+129yId05KNG2NDR9sZYHpSVoaGiPS0iQ90ABq03PsiNoYFzSU1kFaZ+ X-Received: by 2002:a05:620a:1903:b0:767:f178:b571 with SMTP id bj3-20020a05620a190300b00767f178b571mr192201qkb.10.1699292314553; Mon, 06 Nov 2023 09:38:34 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1699292314; cv=pass; d=google.com; s=arc-20160816; b=TogMMAaGSn4+UbS83dsvpBvV/Q9pGHOMEcIfa/sNnKRVt5pIHEc+sbepIvBCRYyEEd J56dpiiulsJezziNVOVB/p298CjXOCQVumpSkvMvKX6g4wHqqiijf6GoQ+7mCpDXzP3I wtK1NTPaFEs+WNflfu/e1j/pT8KLG4FkpyeFfHRZvU/g2j1GDGYWhmK+OGCjJ7hwuc3G hCt2aFEZHyKmMgvI7CfsVTCFaXuZNPWhfr+XYLgG44OKcn8CmFXg4m2DksifH+WCqnub SsvwFma+zw9C2v8mullrVosvuP6qHMr7i/XkOmsMNO71DqQoc6rZk1DvnMoUhQfrPtaU fZHQ== 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:mime-version:user-agent :message-id:date:subject:to:from:dkim-signature:arc-filter :dmarc-filter:delivered-to; bh=9Vlpv5Cy0PRn0nc/DOg8sTssm+GjA+k2rdJ3i9MvyJ4=; fh=hPrbWPhweUx4V0GV9uXJqbyAzg2ABmTz7kczrAQqMmM=; b=JMZQUrS8uUdlTuW7z7FB/V/QWQyTIJd6Y3Ci1uuvNqa5YL5RmXRuVhg8l4ewdAZQuO EQG0RSa6tbimg4RyahAEVcznZsKHvn+RKQ8YXekVT2L/qnsuNzA6amZTPtKXldisVmpH 8VJtp2bW+U/l4frk84M0DUX1uKyLVcYw4bz5nrwnnpFiA1zBAU1UuLtQLJeKLs4OKAp0 MHfmnWurcr74Jp7oKlIhknmJTjYqbmLJHYwmVcnr+SQ8rXNqKecw1lzG5U1IoeTVo71r 6l9Q785BWk/Qo4IYzCUweCYrDV6fg4q4tHtRLbTou9vSsKopug+8gZ1uSX7gqXh7yZZY iNoA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=KIHJeAgU; arc=pass (i=1); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from server2.sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id x8-20020a05622a000800b00419997580a3si5873995qtw.710.2023.11.06.09.38.34 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Nov 2023 09:38:34 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=KIHJeAgU; arc=pass (i=1); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 517683857347 for <ouuuleilei@gmail.com>; Mon, 6 Nov 2023 17:38:34 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by sourceware.org (Postfix) with ESMTPS id 7A9A73858433 for <gcc-patches@gcc.gnu.org>; Mon, 6 Nov 2023 17:38:08 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 7A9A73858433 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 7A9A73858433 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=170.10.133.124 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1699292289; cv=none; b=PzqP2+ml2lO0OFwOl65psqLvIDVZgP5HUNMdk2DU+JIm4AePFPXw4YjGsqTVpfUrKtxGmh41wCYIrgldFf5LQUkTSvvBvvurIV1LXAVYQNUuZHBwuKRggcmEE9QmWeotkoZHAT9BE6Oc9AElpDct+TCc38ARFgr0bGgpdmkYpQ8= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1699292289; c=relaxed/simple; bh=ptiwcmDRq4Sal3+MzWR8tq5q2s6uay0mqp6WKbuehWU=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=dA485NRYgUhPs/B2MipqRrfQLVldtqempDl1yVrFpKqwkYMmoX48m1zCOUqLkpMy2rzgB84KUTbzWDBrud+kIcfcnqi7MOltsdvnT8PL2D7isk66DUxfJEZZJ53t9WXoD7F5T1iQst/CIZxjAM7HibHPcYs+hZOQQe0rpCmnG9M= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1699292287; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=9Vlpv5Cy0PRn0nc/DOg8sTssm+GjA+k2rdJ3i9MvyJ4=; b=KIHJeAgUSoc9noZh3r8XhSYKDBbhgGLl/d8oij6Lyrc2Xtk77bEnex0iCaeBLbJ3SDsYcg 1woaR3xZWp2xnWs/vP7jKFZ5Vfw7mkWeCfiqTGOiQwOzncfnH6oN0iYo+vA5Do1rakA6Kd p2IqyV14UWr0iXi8sYsFHF2HM7Dq0eQ= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-66-xgkJnlo8P-aQJLtegFL1cA-1; Mon, 06 Nov 2023 12:38:06 -0500 X-MC-Unique: xgkJnlo8P-aQJLtegFL1cA-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 36078811E7E for <gcc-patches@gcc.gnu.org>; Mon, 6 Nov 2023 17:38:06 +0000 (UTC) Received: from oldenburg.str.redhat.com (unknown [10.2.16.11]) by smtp.corp.redhat.com (Postfix) with ESMTPS id C7FD92166B26 for <gcc-patches@gcc.gnu.org>; Mon, 6 Nov 2023 17:38:05 +0000 (UTC) From: Florian Weimer <fweimer@redhat.com> To: gcc-patches@gcc.gnu.org Subject: [PATCH] Avoid undeclared use of abort in gcc.dg/cpp/wchar-1.c Date: Mon, 06 Nov 2023 18:38:04 +0100 Message-ID: <87il6eeq9v.fsf@oldenburg.str.redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.3 (gnu/linux) MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.6 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain X-Spam-Status: No, score=-10.6 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_NONE, 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: 1781837137585774943 X-GMAIL-MSGID: 1781837137585774943 |
Series |
Avoid undeclared use of abort in gcc.dg/cpp/wchar-1.c
|
|
Checks
Context | Check | Description |
---|---|---|
snail/gcc-patch-check | success | Github commit url |
Commit Message
Florian Weimer
Nov. 6, 2023, 5:38 p.m. UTC
This should be safe because this is a preprocessor test; it should not exercise implicit function declarations. * gcc.dg/cpp/wchar-1.c (main): Call __builtin_abort instead of abort. --- gcc/testsuite/gcc.dg/cpp/wchar-1.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) base-commit: d28f4194922fe8b25310b926c126e7ec1776c71d
Comments
On Mon, Nov 06, 2023 at 06:38:04PM +0100, Florian Weimer wrote: > This should be safe because this is a preprocessor test; it > should not exercise implicit function declarations. > > * gcc.dg/cpp/wchar-1.c (main): Call __builtin_abort instead of > abort. Ok. > diff --git a/gcc/testsuite/gcc.dg/cpp/wchar-1.c b/gcc/testsuite/gcc.dg/cpp/wchar-1.c > index ac9b38b80da..51ef2fb0f1d 100644 > --- a/gcc/testsuite/gcc.dg/cpp/wchar-1.c > +++ b/gcc/testsuite/gcc.dg/cpp/wchar-1.c > @@ -14,10 +14,10 @@ int main () > > #if L'\x0' - 1 < 0 > if (c > 0) > - abort (); > + __builtin_abort (); > #else > if (c < 0) > - abort (); > + __builtin_abort (); > #endif > > return 0; > > base-commit: d28f4194922fe8b25310b926c126e7ec1776c71d Jakub
diff --git a/gcc/testsuite/gcc.dg/cpp/wchar-1.c b/gcc/testsuite/gcc.dg/cpp/wchar-1.c index ac9b38b80da..51ef2fb0f1d 100644 --- a/gcc/testsuite/gcc.dg/cpp/wchar-1.c +++ b/gcc/testsuite/gcc.dg/cpp/wchar-1.c @@ -14,10 +14,10 @@ int main () #if L'\x0' - 1 < 0 if (c > 0) - abort (); + __builtin_abort (); #else if (c < 0) - abort (); + __builtin_abort (); #endif return 0;