From patchwork Sun Nov 26 16:41:31 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: 169891 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:ce62:0:b0:403:3b70:6f57 with SMTP id o2csp2572543vqx; Sun, 26 Nov 2023 08:42:18 -0800 (PST) X-Google-Smtp-Source: AGHT+IH9PqwDnkJS0sT/zH6KQ3dpUBI+X2TAmiQGvjzLO5Ke36KjmZ+LLr3fzhvbc2KlNi/GKvSn X-Received: by 2002:a05:6830:6202:b0:6d8:17a0:b32a with SMTP id cd2-20020a056830620200b006d817a0b32amr3480730otb.20.1701016937721; Sun, 26 Nov 2023 08:42:17 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1701016937; cv=pass; d=google.com; s=arc-20160816; b=nJJv3WRtnjH56gAiXlLRK8ug0peRMX4cHYAsENUgGOr3AZ1udqZyWSvyt5fMQ7NT/A U8ETcuMAsJrsBaAXkWjDnDl3OVV/qgUnu2cOEampkIBlu5NPyaF/X4MhTvSfv+XTUJQq lhNqI6CzAUWG0vN76mlvyRj/Cx5YAWvXe1XoZRZVc1LdAX7QAmswAjzsSfAuCVh3qAKD D1/7ti3qwn5OjMqDrMfLztN7zTuKmocOXcKQVGC/e2mk4jdUAPjXpwGk5bCUacKdr5rA iuf86ixwXoanxlHNWYm1cPrMEuUKGTlEWtANS4m/NOSDMHPi7O6wJPVn4/wL6fJrDkcT 6YCw== 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=Lq344ry4reCdXqLd7qazMZamTaH9Ma1Yk+BogLYy9s4=; fh=1L2/IiukS00vgiXcKREcvt+pFBEM8GuYOng2C1a9k1k=; b=pPfPiNYqjma4p6BrOHbkE+qBruTVTbg/hbWhAdSJtHUBgRFVVaQxkxGbyGpUKDwJsT nUfjJBwhMkkGhesJpOq6FUAd/641FHcADokkGwydrh+nDn7g9hQHOwNa/Md9pNVPhMyN ltHGhe0Umaw80JsLj2TkP/Duu1OL1hKni3lIZ5wsK1OWqV4BuNh/xc+dw1OdAAkeTUxk KZC1WjF81VjXvWGRaPrdv6eOrxYzMPWoNtEjxwrCknEheMTFdJaeN0GgSZk7MMuvit4Q y02JeZ/h+jeHuvRAS97cBO8cxqfxR3fm1WpLl4i1vtxfaSU93t/RX2NzU9eIwHuD0CiT meDg== 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 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from server2.sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id l11-20020a056214104b00b0067a15823626si5342339qvr.256.2023.11.26.08.42.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 26 Nov 2023 08:42:17 -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; 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" Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 7C3C638582BB for ; Sun, 26 Nov 2023 16:42:17 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from dellerweb.de (dellerweb.de [173.249.48.176]) by sourceware.org (Postfix) with ESMTPS id 611F23858C29 for ; Sun, 26 Nov 2023 16:41:55 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 611F23858C29 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 611F23858C29 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=173.249.48.176 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1701016916; cv=none; b=sTkKWZjIsdAmwCtSTInwov8iDV+utRXMiJdOMszLh62NIwWQa8wS8kHX03nWr4J5zyQI1bhTbGoSYaxwTp7TCvKnVQjJFTKW9gkQarEkqF6AdhtGf2mpLELHd+vDnb+w14Zgl9ce4ooxbC6gyFaq8NaZ6pXwVhSzZcEMOLKYSZw= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1701016916; c=relaxed/simple; bh=7h+q1umrHItJyPRtSxQMq3Uk70VnOQVCi6sVHzeDhfY=; h=Date:From:To:Subject:Message-ID:MIME-Version; b=JUZVShfhWD/WbEHFIOdwplyb6hzSOTdku8mqja+kOOMuMh/OAKvYIMlEW+Mehonq3biSGAnLOpmfBkKvHwC2gPNZ3jPRX56KiOmlbZOurc8psNB0gGRUefsaL9CCzanvvBaszjvHvk2zjEI0Eo8eNhPUoXaFB+q0rNJHu7PWOJM= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from mx3210.localdomain (unknown [142.126.114.79]) by dellerweb.de (Postfix) with ESMTPSA id D4B551600066; Sun, 26 Nov 2023 17:41:53 +0100 (CET) Received: by mx3210.localdomain (Postfix, from userid 1000) id C209E22011C; Sun, 26 Nov 2023 16:41:31 +0000 (UTC) Date: Sun, 26 Nov 2023 16:41:31 +0000 From: John David Anglin To: GCC Patches Subject: [committed] hppa: Fix pr104869.C on hpux Message-ID: MIME-Version: 1.0 Content-Disposition: inline X-Spam-Status: No, score=-9.2 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1783645536503584727 X-GMAIL-MSGID: 1783645536503584727 Tested on hppa64-hp-hpux11.11. Committed to trunk. Dave --- hppa: Fix pr104869.C on hpux 2023-11-26 John David Anglin gcc/testsuite/ChangeLog: * g++.dg/pr104869.C: Add attribute visibility default to main prototype. diff --git a/gcc/testsuite/g++.dg/pr104869.C b/gcc/testsuite/g++.dg/pr104869.C index 13a39fccdb9..851d65355de 100644 --- a/gcc/testsuite/g++.dg/pr104869.C +++ b/gcc/testsuite/g++.dg/pr104869.C @@ -69,7 +69,7 @@ struct ControlFlow { return false; } #ifdef __hpux__ -extern int main(void); +extern int main(void) __attribute__ ((visibility ("default"))); #endif int main() {