From patchwork Wed Jan 15 19:25:49 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Malcolm X-Patchwork-Id: 104852 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id A7F0138515E4 for ; Wed, 15 Jan 2025 19:28:08 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A7F0138515E4 Authentication-Results: sourceware.org; dkim=pass (1024-bit key, unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=frGXJ1/R 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 8502D3851AAA for ; Wed, 15 Jan 2025 19:25:56 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 8502D3851AAA 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 8502D3851AAA 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=1736969156; cv=none; b=rgpI5+mTHd3o+tySMvH0/sZEQNJL4EvFhIu9m1GnFhEHIyY7T3eEDvy2wm2yNVGDUfPhbQNXC8jb8BqKyQ7oeclQ75dGNgmf18i3RH7EQiDjhQVWIH7T2vwbhqdJVipL6kKGGnx2wllUOM8g91LZ4mSGHO+dvzFk+ctPeJuGLy4= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1736969156; c=relaxed/simple; bh=NT8k3t8B8aqCqtvbFw883nPsBrX7ctypqZ1PCOgEwXg=; h=DKIM-Signature:Message-ID:Subject:From:To:Date:MIME-Version; b=A8RiGrSwzJzuhnXHvTzs7ZnRUODVDwkLE9e60U1BFUbJefxNwDXdo8m/8hPbp0FLgUSVxL9XPXWJsCbKuNUdjnM1gLB2TwVGfpLDEBqnSfAa51r9BXgYU5tLNP3kvm/8O4WbYxQ7PfzV7dyj2jfhqOY139Df9TX1fhpdyK35+go= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8502D3851AAA DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1736969156; 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=qkHG1qfvCxsV0oPRziWG5IawFRlpOW+FdE2eSzh5tyE=; b=frGXJ1/RNOp85btTxWNxodNLXxi3XI+ZojXbiFSXQc4o+aSO6RyY3+YQD7TJmco5R+4Vcm V9gw1TguZO1svdT6wmKuVC1fXmdqwZM04IIq+fXi74/kCFKsR+sd+ByBDeGkQhwIE+EEGc Bj2CCkpnuUMeZoYn6hSloZ6gBYK/7Ng= Received: from mail-qk1-f197.google.com (mail-qk1-f197.google.com [209.85.222.197]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-595-tQvPURnAPn2jUpqKec2ZkA-1; Wed, 15 Jan 2025 14:25:54 -0500 X-MC-Unique: tQvPURnAPn2jUpqKec2ZkA-1 X-Mimecast-MFC-AGG-ID: tQvPURnAPn2jUpqKec2ZkA Received: by mail-qk1-f197.google.com with SMTP id af79cd13be357-7b6d0be4fb8so9572785a.2 for ; Wed, 15 Jan 2025 11:25:54 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1736969154; x=1737573954; h=mime-version:user-agent:content-transfer-encoding:date:to:from :subject:message-id:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=qkHG1qfvCxsV0oPRziWG5IawFRlpOW+FdE2eSzh5tyE=; b=g/tWklafxjQ2r+oV53m/mbGiyo8ZvpP/g+IWvlpgaiICuSsMgKSaYiysJfe7y8TGol mW6QyanCEmNpwu9aWwfQjie5Sh9RG/qhPQd6j+AeRMMlU3Yd1VLgt5XGnfzT641KhVrP gHfdcG2JnDMHyYehoqU/Vq7dzqXErUPn5W4VqWWkJiqcC24K6s6D2kb8NSz6ZPumcxST N6fRvoEDHbJby5tRz9q9FOn2S653qL4ROSLm7OHPIlQCwBooMiKUga4yU0xVRDzVzbks NmeKYYs904n4mgUVsGA9Q/1I26RA15vaxDWCyGFRnbm2wbPub003F1wTBG6NJghQ31ml I/eA== X-Gm-Message-State: AOJu0YxG8x+Hqt8nSD98tn43KB6vGiLptPFdcF6uWrzRbScI8gIoN+7a alun0O2ACRhQtzXJQiHYFNPH4wS1bd87HzttWnwS9NRj/w/OdvT1LhsQZWIejJzM9YvO+meI6zJ SJXiKRQe5e7KfRPMpirnHGBlMMc94i6uNKmJ30jVDDA1kKlaEJl6vax+Jt3Au1+iSZ+Jrx5vVon JewvbWTXA/kkddePwy+yl2/0DvM+V19ThOSCkKYxE= X-Gm-Gg: ASbGncvOR0ZmIQxBxnQz3/Y+q55ctD9BUzP3Zl+hzUVzXuF3YIo/GH4VrjZOsEjxfjl 8HIbMRe7B31JYKG9Fj1Ex9mAdEFvd7TYyPh5R6jarcOgTcHHXkbjCbGqy7hbVix/GMW2g2lItJ1 dXKNZLGedVyt8fHTFkWCW4D6nC7c5Oj/MBaOyTMs3YPBkHwOMKxVhBcDe3rpH/WusOvLKIbU3OW Ls4TsOFeV3v3/ikLpflF8/7I7h+VcsAIc4DfVM62DEGJ/Mdt9faEpCn7wnBpWYnrSQKgfug45Vv 0gSxMJxJSMyxQUWf X-Received: by 2002:a05:620a:2a01:b0:7b6:f31a:7804 with SMTP id af79cd13be357-7bcd96e6a84mr4747815185a.9.1736969152462; Wed, 15 Jan 2025 11:25:52 -0800 (PST) X-Google-Smtp-Source: AGHT+IGRONbsnKy7qikPOpSA79S24HRHAwvHJVgKgoIqUqTRkqOL1rdjDvFeyUbkTiAALzL89XOmAg== X-Received: by 2002:a05:620a:2a01:b0:7b6:f31a:7804 with SMTP id af79cd13be357-7bcd96e6a84mr4747811185a.9.1736969152070; Wed, 15 Jan 2025 11:25:52 -0800 (PST) Received: from t14s.localdomain (c-73-38-81-7.hsd1.nh.comcast.net. [73.38.81.7]) by smtp.gmail.com with ESMTPSA id af79cd13be357-7bce327b8a0sm747511785a.60.2025.01.15.11.25.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Jan 2025 11:25:51 -0800 (PST) Message-ID: <24d7c7bbf357c5850f5727e70faf0a9458b3c279.camel@redhat.com> Subject: [pushed, wwwdocs] gcc-15/porting_to: prefer to for non-std:: types From: David Malcolm To: "gcc-patches@gcc.gnu.org" , jwakely@redhat.com Date: Wed, 15 Jan 2025 14:25:49 -0500 User-Agent: Evolution 3.52.4 (3.52.4-1.fc40) MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: 116nLSpYjN3AZagqDK2EWLSPXQ8PpKHyMBfmAywMwrY_1736969154 X-Mimecast-Originator: redhat.com X-Spam-Status: No, score=-11.7 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, SPF_HELO_NONE, SPF_NONE, TXREP 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~patchwork=sourceware.org@gcc.gnu.org My tests showed the removal of internal uses of from stdlibc++ usually manifests in complaints about unqualified types like "uint8_t", rather than "std::uint8_t" (and unfortunately the fix-it hint gets this wrong; see PR c++/110930). I've taken the liberty of pushing this patch to the website to recommend rather than Hope this wording is an improvement. Dave --- htdocs/gcc-15/porting_to.html | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/htdocs/gcc-15/porting_to.html b/htdocs/gcc-15/porting_to.html index 7344afa5..39598b93 100644 --- a/htdocs/gcc-15/porting_to.html +++ b/htdocs/gcc-15/porting_to.html @@ -82,11 +82,13 @@ As such, C++ programs that used standard library components without including the right headers will no longer compile.

-In particular, the following header is used less widely within libstdc++ and +In particular, the following headers are used less widely within libstdc++ and may need to be included explicitly when compiling with GCC 15:

    -
  • <cstdint> +
  • <stdint.h> + (for int8_t, int32_t etc.) + and <cstdint> (for std::int8_t, std::int32_t etc.)