From patchwork Fri Mar 24 11:37:39 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jakub Jelinek X-Patchwork-Id: 74514 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp592929vqo; Fri, 24 Mar 2023 05:40:57 -0700 (PDT) X-Google-Smtp-Source: AKy350bcvMFIOCGztGqA0syAhcrAOeeUyu93CaIe5jOM1hOgLd+qP8dHWzqfldr55wRLroUjCj/V X-Received: by 2002:a17:907:1c21:b0:8b1:7ead:7d43 with SMTP id nc33-20020a1709071c2100b008b17ead7d43mr3572866ejc.50.1679661657052; Fri, 24 Mar 2023 05:40:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679661657; cv=none; d=google.com; s=arc-20160816; b=DB1egcv679L8FfLyznYEZpn3rTHk1Y5kp0+HJjllktxJRCfOmWwZLJ95oD+o1mVi2d +oHviyi+fOKdmGTdsQLg3jEHIl1xBG6f3mLOQ7f62VZ2wafd1z4HcGWhwxkBqXhVZ2PT ls5r5ziP2ikXiNCJFEYif8HGsOwbbsJp0vYIU2suwLC7IUHqkGC3HRKV/+k/N0BuwJE8 AvBAvYQmUO1Z1FoX8p/cg2Pl5SnGnGnx5BUlXNvccR1aOnRKv3r4v5J3ipeKrB4G9g3N SoF7pQ/pq57HP8UM0QIW2TjVppbelibs5yeF4AS3LT19SoIXhzSbiMrEQbn1AzNkTVr/ GPKQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:reply-to:from:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence :content-disposition:mime-version:message-id:subject:cc:to:date :dmarc-filter:delivered-to:dkim-signature:dkim-filter; bh=OeQRkWYuM+0avtiyEc1cQVJbyimJvuCbur+etxQ3MG4=; b=HOu8omrGEXJcpJELqLqE9c1gASePvoRlCpaEzfQ1ZInes2rRJQpNuiwIZn64oRF98K 57/XH8gd0uxmMO/a+DdK2QOPy/hH6y8InpxvM6YXGiVlSBJAa30BUN0RgtEh/uXYKzYa xOXRH4twsfe0UfP0qJntuYLqy1crg03C2r0NLs1decudrSqH7pijORRN+qVVwUQwJnty FsWaIAgKxya4CmcJ5LHZu0A07ckC5vxvNofKvHUbHYIljWuCBqeBEhJchyqxiE0Vlqnp IxeITO4UI8LagDFi0kik06uvHhGxUe22zvtBy/hnFpSOT5Vbp446BCP054BcLqOsdf9S OlQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b="nez/SiGU"; 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"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id lr14-20020a170906fb8e00b0092fbe4cae99si17458770ejb.974.2023.03.24.05.40.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Mar 2023 05:40:57 -0700 (PDT) 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; dkim=pass header.i=@gcc.gnu.org header.s=default header.b="nez/SiGU"; 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"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id E5BD638708A5 for ; Fri, 24 Mar 2023 12:40:55 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E5BD638708A5 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1679661655; bh=OeQRkWYuM+0avtiyEc1cQVJbyimJvuCbur+etxQ3MG4=; h=Date:To:Cc:Subject:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From:Reply-To:From; b=nez/SiGUYUFlJHSnffOhxKy79+/BkZ8xeN93GQi3rBmnY0D2RAtVZWumhSLbYMNXh M9L7jVkFhhxmy0mQiBiidJZNBjJW0NZos4/6tfCn8iUhHUUhx6tbh1IPm4rOl3pwjw LtVYjWTNy7He9EURhck4DVCm6cHqff0Qtamn0Y6g= 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.133.124]) by sourceware.org (Postfix) with ESMTPS id 12A993858D28 for ; Fri, 24 Mar 2023 12:40:02 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 12A993858D28 Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-652-baluGtUgN5a3qI8Mm_a4eA-1; Fri, 24 Mar 2023 07:37:50 -0400 X-MC-Unique: baluGtUgN5a3qI8Mm_a4eA-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.rdu2.redhat.com [10.11.54.7]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 704BF85530D; Fri, 24 Mar 2023 11:37:50 +0000 (UTC) Received: from tucnak.zalov.cz (unknown [10.39.192.16]) by smtp.corp.redhat.com (Postfix) with ESMTPS id F28A1140EBF4; Fri, 24 Mar 2023 11:37:49 +0000 (UTC) Received: from tucnak.zalov.cz (localhost [127.0.0.1]) by tucnak.zalov.cz (8.17.1/8.17.1) with ESMTPS id 32OBbkX13031078 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Fri, 24 Mar 2023 12:37:47 +0100 Received: (from jakub@localhost) by tucnak.zalov.cz (8.17.1/8.17.1/Submit) id 32OBbeaW3031077; Fri, 24 Mar 2023 12:37:40 +0100 Date: Fri, 24 Mar 2023 12:37:39 +0100 To: Gerald Pfeifer , "Joseph S. Myers" Cc: gcc-patches@gcc.gnu.org Subject: [wwwdocs] Mention the GNU C enum changes in gcc-13/changes.html Message-ID: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.7 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Disposition: inline X-Spam-Status: No, score=-9.3 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, KAM_SHORT, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, 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.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Jakub Jelinek via Gcc-patches From: Jakub Jelinek Reply-To: Jakub Jelinek Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1761252901434436439?= X-GMAIL-MSGID: =?utf-8?q?1761252901434436439?= Hi! The following patch attempts to document the PR36113 changes to the GNU C extension support of enumerators which don't fit into int. Ok for wwwdocs? Shall we mention it in porting_to.html as well? The only known affected package is (was?) the Linux kernel. Jakub diff --git a/htdocs/gcc-13/changes.html b/htdocs/gcc-13/changes.html index f8e9560c..d2035435 100644 --- a/htdocs/gcc-13/changes.html +++ b/htdocs/gcc-13/changes.html @@ -59,6 +59,22 @@ a work-in-progress.

iWMMXt built-in functions. +
  • The behavior of the GNU C extension support of enumerators which + don't fit into int has been changed to match the C2X + behavior. Previously, in enumerations where at least one enumerator + didn't fit into int, only those enumerators that didn't + fit into int had the enum type and others + had int type and while the enum is being + defined enumerators that didn't fit into int had some + unspecified type with the sign and precision of its value. + In GCC13, in such enumerations all enumerators have the + enum type and while the enum is being + defined enumerators that didn't fit into int have + type of their value. If all enumerators fit into int + type, as before all enumerators have int type, both + while the enum is being defined and after it is defined. + See PR36113 for details. +