From patchwork Fri Apr 17 13:11:16 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nathan Sidwell X-Patchwork-Id: 1272237 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=sourceware.org; envelope-from=gcc-patches-bounces@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=acm.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=mNW51pFC; dkim-atps=neutral Received: from sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 493c1C3lTsz9sQx for ; Fri, 17 Apr 2020 23:11:25 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id C8EC8385C426; Fri, 17 Apr 2020 13:11:21 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-qk1-x72b.google.com (mail-qk1-x72b.google.com [IPv6:2607:f8b0:4864:20::72b]) by sourceware.org (Postfix) with ESMTPS id 85268385B835 for ; Fri, 17 Apr 2020 13:11:19 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 85268385B835 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=acm.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=nathanmsidwell@gmail.com Received: by mail-qk1-x72b.google.com with SMTP id s63so2271045qke.4 for ; Fri, 17 Apr 2020 06:11:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:to:from:subject:message-id:date:user-agent:mime-version :content-language; bh=il6dfrenVspG+a2XaVvAwouXiyMdt+VXrp9uiAQXCeI=; b=mNW51pFCQ3q9UvYz5YV/yPpoWKvQ31rq3eAfOO2FKuBKSig+XuT773tokzCR7ucEWb M/jzRrq2bDhT8jJzdv9sl+m62DhNKlgvdDSPhU1wMGvS0rqgIV4tct+fqITIqMv8iWin onfJL1Kn38KIVkb9qx8dRyWKGfSksr2B5zhnDEUlBNPFGjSHT7Zbpo4eUHKyElH6EBSo vyZLrp5skUJFyGY88Zg/EH3MA8zmN1qSRRAiUvv+J5aJJkJXUsjKVCOQnTM2YSa/2rlr 39EzTOYQJRArIMdiAg6TpkXEmna2OwmBZd01+j70yc2SXi29Ev16Orw9uN/m+vUunByk aZgQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:to:from:subject:message-id:date :user-agent:mime-version:content-language; bh=il6dfrenVspG+a2XaVvAwouXiyMdt+VXrp9uiAQXCeI=; b=g/sTTYHjShJJUV4ADmTpxZGGPPVBvmmM1QIYlJL95wWKTzbDt/E88Mo327k9noeIaz 8B3KclQBi07026hHPXuKiWVI6eQZ0xzbu2+f1TWB9YsPH1/yQpyeLnRaZJPYTc2ShA8D ZPZl9XeGkY1iMrzCz+w1Soytwwz2OH6IGieaHLHlNWXBtnkIco0dmcYA77AuUIKETAMx EyVb5cpSxJGId+0t0QADTTs4i6c7+UIM01Cr6UVRlndpdOa/n/7V+qKbiBYw1v5Id5kv dXzkxZ0S+WgjA7h2w3/mACZJ/gRPsI8jr4m56K8QiBOWwwlhnEq0840fh0JXiXqX/CtP Rx8g== X-Gm-Message-State: AGi0Pubws3DOMRO/4Idfo1CG3/bTf/hHGDSXR5hyC2a6wY5LVfvcjMrI bqcR9tz0do0GraEXnzYA0IDC7J1E X-Google-Smtp-Source: APiQypL3AceX6Xt3pP8QGnH78Aw3tqKYwfTtKAYIJKxhQUiVADSackzjWi8Rc/8ZZbE6QmjXCXJ2zA== X-Received: by 2002:a37:7043:: with SMTP id l64mr2876930qkc.78.1587129078755; Fri, 17 Apr 2020 06:11:18 -0700 (PDT) Received: from ?IPv6:2620:10d:c0a8:1102:d576:b2c:87d0:1dec? ([2620:10d:c091:480::8f7f]) by smtp.googlemail.com with ESMTPSA id x16sm5057977qkh.14.2020.04.17.06.11.17 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 17 Apr 2020 06:11:17 -0700 (PDT) To: GCC Patches From: Nathan Sidwell Subject: c++: avoid testcase warning on arm Message-ID: <0ef64a8f-0a2e-f9ba-2847-f4c64f821b26@acm.org> Date: Fri, 17 Apr 2020 09:11:16 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0 MIME-Version: 1.0 Content-Language: en-US X-Spam-Status: No, score=-20.3 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_EF, FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces@gcc.gnu.org Sender: "Gcc-patches" I've pushed this patch to avoid a warning introduced by 94426's change to linkage of lambda. The arm eabi wants to emit the vtable, other abis don't. nathan diff --git i/gcc/testsuite/ChangeLog w/gcc/testsuite/ChangeLog index dd2cb04916f..b98c72cdd2a 100644 --- i/gcc/testsuite/ChangeLog +++ w/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2020-04-17 Nathan Sidwell + + PR c++/94608 + * g++.dg/lto/pr83720_0.C: Add fn def to avoid warning on arm ABI. + 2020-04-17 Jakub Jelinek PR rtl-optimization/94618 diff --git i/gcc/testsuite/g++.dg/lto/pr83720_0.C w/gcc/testsuite/g++.dg/lto/pr83720_0.C index 4e63c9be7cd..91f36caf2c0 100644 --- i/gcc/testsuite/g++.dg/lto/pr83720_0.C +++ w/gcc/testsuite/g++.dg/lto/pr83720_0.C @@ -48,7 +48,7 @@ public: k(al); } d([](b::ai) { struct be { - virtual void f(); + virtual void f(){} }; struct bf; b::c().aj("", &be::f);