From mboxrd@z Thu Jan 1 00:00:00 1970
Return-Path:
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
Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com
Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com;
s=mimecast20190719; t=1679661601;
h=from:from:reply-to:reply-to:subject:subject:date:date:
message-id:message-id:to:to:cc:cc:mime-version:mime-version:
content-type:content-type; bh=OeQRkWYuM+0avtiyEc1cQVJbyimJvuCbur+etxQ3MG4=;
b=EC07WstUP5DiAZ7ZeJQNqN6zETitk5m383MB6aqLGxTDFltAfYh2HGoRZ0PP/EgqjP+4r9
OeVkTrUOd32Fcki9+ikD29Kuv6ZGAIHDcetJfc+EX9XwcCuAJL/enkNRci/VS8M2dWv2Ka
d6bqjvzDloptCsHIqdU2xH3184eIOss=
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
From: Jakub Jelinek
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:
Reply-To: Jakub Jelinek
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-Type: text/plain; charset=us-ascii
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
List-Id:
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.
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.
+
Jakub