From patchwork Thu Sep 26 23:19:07 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Wakely X-Patchwork-Id: 1990032 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=eHsYG8Qa; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=server2.sourceware.org; envelope-from=gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=patchwork.ozlabs.org) Received: from server2.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 ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4XF8j25VMZz1xtJ for ; Fri, 27 Sep 2024 09:20:38 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 969363858C33 for ; Thu, 26 Sep 2024 23:20:35 +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.129.124]) by sourceware.org (Postfix) with ESMTP id BF57B3858D29 for ; Thu, 26 Sep 2024 23:19:30 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org BF57B3858D29 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 BF57B3858D29 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=170.10.129.124 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1727392772; cv=none; b=W9PiwpW1aXrLNpzVJr8iuMPj90B7vWkMi79lxwTMGkuitO+QiVJBhl3UvwiL7svfyDRse0nZUAN7NY3m2V+bAiAWq1JB6aigC242Ku+fkFHfwwt2ddlweMF4Vz+m3Gx7vJmdAc1gpuTWLGsWGO6lptP2zZsPTbjcBSHIB6buBkg= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1727392772; c=relaxed/simple; bh=RC/xKS6JfV3yo2Ybi9Lj0dB/aotTnQCujyEsFWp+Cjs=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=jCgVikEdrd/WQDsvDMILvrbxJDcR+2NBcBeQJwgQH65tb4FAtEVHhgfJEdvz2uB78b+XqCxiT3s8KF53R3eCfG17VklNkWJN1IyHmkfM1mj6WdlA6lMHoyeOedEg6lVpsOewdrwahbHVH6TCj6UeQj4Xf458xVdTbPyjURZ0Pxc= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1727392770; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=JeNyPE2Dc3HqkUhduo6g8qxVa3qrVeT9vbTeoH/dbH4=; b=eHsYG8QaPl3uHW4645sRfUkiJf49AL9ZeK70GAlUVIZdF5E4hsHO48TegZwogB3x1dlaKD pmvuvjoENoQZfKP6O0XcM+lojjTCzqIrawrIZ/16tnfI3ERH4eVbwylhxaJ3UAfM/Voc/j HJ+eLEbImtAsNzkARc9fTUo+3iZqA1g= Received: from mx-prod-mc-02.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-455-CyvzfINtOwmBMz_11qetNw-1; Thu, 26 Sep 2024 19:19:26 -0400 X-MC-Unique: CyvzfINtOwmBMz_11qetNw-1 Received: from mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (unknown [10.30.177.4]) (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 mx-prod-mc-02.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id F18381936B84; Thu, 26 Sep 2024 23:19:25 +0000 (UTC) Received: from localhost (unknown [10.42.28.136]) by mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 584283003DF2; Thu, 26 Sep 2024 23:19:25 +0000 (UTC) From: Jonathan Wakely To: libstdc++@gcc.gnu.org, gcc-patches@gcc.gnu.org Subject: [committed] libstdc++: Add missing 'inline' to always_inline function Date: Fri, 27 Sep 2024 00:19:07 +0100 Message-ID: <20240926231924.2157216-1-jwakely@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.4 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-Spam-Status: No, score=-12.0 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_NONE, TXREP autolearn=unavailable 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~incoming=patchwork.ozlabs.org@gcc.gnu.org Tested x86_64-linux. Pushed to trunk. -- >8 -- This fixes a -Wattributes warning for the COW std::string which was previously suppressed due to being in a system header. libstdc++-v3/ChangeLog: * include/bits/cow_string.h (__resize_for_overwrite): Add inline keyword to function with always_inline attribute. --- libstdc++-v3/include/bits/cow_string.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libstdc++-v3/include/bits/cow_string.h b/libstdc++-v3/include/bits/cow_string.h index 2298844f38d..b78aa74fbfa 100644 --- a/libstdc++-v3/include/bits/cow_string.h +++ b/libstdc++-v3/include/bits/cow_string.h @@ -3765,7 +3765,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION template template [[__gnu__::__always_inline__]] - void + inline void basic_string<_CharT, _Traits, _Alloc>:: __resize_and_overwrite(const size_type __n, _Operation __op) { resize_and_overwrite<_Operation&>(__n, __op); }