Message ID | ZV-7qGTqufuUgo4P@mx3210.localdomain |
---|---|
State | Accepted |
Headers |
Return-Path: <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:ce62:0:b0:403:3b70:6f57 with SMTP id o2csp704429vqx; Thu, 23 Nov 2023 12:53:44 -0800 (PST) X-Google-Smtp-Source: AGHT+IGj9JH4SlZMqqiTBA2HvAuIK7dD839U8qXRmfRpAULwb7/2HxgCJu3mZ6a9pNz+PEZPI6NV X-Received: by 2002:a0d:d893:0:b0:5cd:e08c:c440 with SMTP id a141-20020a0dd893000000b005cde08cc440mr489912ywe.16.1700772823886; Thu, 23 Nov 2023 12:53:43 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1700772823; cv=pass; d=google.com; s=arc-20160816; b=wzEGo0RFBjEj/BvJy6npNxZkRFMIg/qEMgB2dEhdk5CwPOZpQfajl7VXOqM+jjkuSn JllJ9meiTZuDW3476vZSSREwp2pdJUTvSq1MSoD37/HnQ1GWmBpZ5iWUF9m3LnfnIgJv /WXLU1DcUEUZbZdWwNhYgT4pJXs+kiMw6+kw86N7Ov0To8l4BlMceMQ17l1Fu8hrGYTf hSxaBOZ8tDvOtaoUTMvj6ljg3Z5uYhqbQffQ8Qnu7YEAjwop5flXl78hm+uk/rSGypHe tySb3ouRjBi/AZ4Z3Ok8nA3s0ZYnHFmfJrnV01kIYYh2ZiUbct+bQH04BDfkiymLz0Vi 43kg== 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-disposition :mime-version:message-id:subject:to:from:date:arc-filter :dmarc-filter:delivered-to; bh=YPXWAyAnN+0vzoRcOO7HdU9X2ZV2bYwPvsnJnPXGLIE=; fh=1L2/IiukS00vgiXcKREcvt+pFBEM8GuYOng2C1a9k1k=; b=KvjRl/+WT+P++YPsZ3CL5ErI96YPZuZhPsjIVEdxdW5oIkQ3uFTn3hzy70ucvQy2kX 0zB1OCzCAqCZ5yMmRPvb7MHI8N3Qf+Bf/DeYB2kbdbilxPod4dt/BLEojB6U/16jEf6s rrrKxdDpvXC2aoKasb9jeiyIE6n383AdxViB9lIqVpCgvQR3OpIR1mdcdZNzE44fZuRA 00J/H543VbBlDg/fTZZOIyiANpqw1yHwbS6Xlk+v+x1rvYagK5HAtOBHj1fBzawaolNd 0besvdM0xtYztqgIiw6sVp/C286EvjH9c8PIPeG3NSGs8RqidBpAV4AWUNNjxnNgKk71 aiZQ== ARC-Authentication-Results: i=2; mx.google.com; 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" Received: from server2.sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id q13-20020a0cfa0d000000b00679e5717bc8si1783190qvn.532.2023.11.23.12.53.43 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Nov 2023 12:53:43 -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; 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" Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id A2F813858CDB for <ouuuleilei@gmail.com>; Thu, 23 Nov 2023 20:53:43 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from dellerweb.de (unknown [IPv6:2a02:c207:3003:236::1]) by sourceware.org (Postfix) with ESMTPS id 26F063858D1E for <gcc-patches@gcc.gnu.org>; Thu, 23 Nov 2023 20:53:20 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 26F063858D1E 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 ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 26F063858D1E Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a02:c207:3003:236::1 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1700772801; cv=none; b=lBbAw7nCy840/eZZcRhqRnrw9amJYudlDY+o3QUvmJ+l4Gr2RWx76HRqLychgwyXrMF2gMpC9QjqsetShzcg/lYse32qd2J1D9W3fLvuloqEZQQ6uok8mQ2UN/+3NcoKYNjAH8H7gxA1H4K9iuJyFl+NDA3AgKs/UNMt9p+KxLA= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1700772801; c=relaxed/simple; bh=qoGi4PSQ0hRYMVFpNnUiG1uKczwreOzd2t07+i1Pew0=; h=Date:From:To:Subject:Message-ID:MIME-Version; b=YSbN57RhNkWjvrS3OfQ0SfItjh2wp1MPWsXYg7eHEGZ58olS1RwC0KwU4n3p3qRhMmbY9fLZdP8w84GdMP8ZGYnSaTIRYpvit4dI3N8LQIZEhaqNcbDcINTM2N9r5Zk+ZvbToHCJHJejLaIQyIZUTKv5miJsA2DzoXlXbCzqhMA= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from mx3210.localdomain (unknown [142.126.114.79]) by dellerweb.de (Postfix) with ESMTPSA id 9B89D1600244; Thu, 23 Nov 2023 21:53:18 +0100 (CET) Received: by mx3210.localdomain (Postfix, from userid 1000) id F259922012C; Thu, 23 Nov 2023 20:52:56 +0000 (UTC) Date: Thu, 23 Nov 2023 20:52:56 +0000 From: John David Anglin <dave@parisc-linux.org> To: GCC Patches <gcc-patches@gcc.gnu.org> Subject: [committed] hppa: Export main in pr104869.C on hpux Message-ID: <ZV-7qGTqufuUgo4P@mx3210.localdomain> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="0c/YzzLfVVVNsQi9" Content-Disposition: inline X-Spam-Status: No, score=-9.0 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: 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: 1783389564572225578 X-GMAIL-MSGID: 1783389564572225578 |
Series |
[committed] hppa: Export main in pr104869.C on hpux
|
|
Checks
Context | Check | Description |
---|---|---|
snail/gcc-patch-check | success | Github commit url |
Commit Message
John David Anglin
Nov. 23, 2023, 8:52 p.m. UTC
This fixes a hpux linker warning about main not being exported. Committed to trunk. Dave --- hppa: Export main in pr104869.C on hpux This is needed to avoid a linker warning. 2023-11-23 John David Anglin <danglin@gcc.gnu.org> gcc/testsuite/ChangeLog: * g++.dg/pr104869.C: Export main on hpux.
diff --git a/gcc/testsuite/g++.dg/pr104869.C b/gcc/testsuite/g++.dg/pr104869.C index 9a6ef88adbd..13a39fccdb9 100644 --- a/gcc/testsuite/g++.dg/pr104869.C +++ b/gcc/testsuite/g++.dg/pr104869.C @@ -68,6 +68,9 @@ struct ControlFlow { foo(2); return false; } +#ifdef __hpux__ +extern int main(void); +#endif int main() { ControlFlow cf = { nullptr, ControlFlow::UnwindType::EE };