Message ID | 20221130142556.3079865-1-qing.zhao@oracle.com |
---|---|
Headers |
Return-Path: <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp955176wrr; Wed, 30 Nov 2022 06:27:09 -0800 (PST) X-Google-Smtp-Source: AA0mqf4mVokxW7PrBjItlaC63kMeH8NVz3661VGxE/hv/qyEMfHLaFXOKRsljFdmLGGq+7T8Y9do X-Received: by 2002:a05:6402:4507:b0:467:205b:723d with SMTP id ez7-20020a056402450700b00467205b723dmr37032058edb.69.1669818429513; Wed, 30 Nov 2022 06:27:09 -0800 (PST) Received: from sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id cy22-20020a0564021c9600b0045d9ceae669si1453950edb.404.2022.11.30.06.27.09 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 30 Nov 2022 06:27:09 -0800 (PST) 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=ZPZtZ21K; arc=fail (signature failed); 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 3A716385189D for <ouuuleilei@gmail.com>; Wed, 30 Nov 2022 14:26:57 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3A716385189D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1669818417; bh=u3Gh+Zq0TYkfSTw5pt13ppy0S11sXoEEKgR+csqa8Uo=; h=To:Cc:Subject:Date:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From:Reply-To:From; b=ZPZtZ21KIt84Ho6MgAg4z7nKisUBzOhsGdo6rDRIj/DsxsdvT0pu6ekMSk4k3fxVj tskVNE/WCej8UuGnvNq5stvz0fS8aNmnY1c04iv8vG4TgDS+8r513FjXFuNEuXRO1H pY63myY7BntdJXCV+Hc/n+09hIkr5ijmIELp2f+I= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) by sourceware.org (Postfix) with ESMTPS id 4D749385703A; Wed, 30 Nov 2022 14:26:11 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 4D749385703A Received: from pps.filterd (m0246630.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 2AUDT3R2013603; Wed, 30 Nov 2022 14:26:07 GMT Received: from iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta01.appoci.oracle.com [130.35.100.223]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3m397fj31w-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 30 Nov 2022 14:26:07 +0000 Received: from pps.filterd (iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (8.17.1.5/8.17.1.5) with ESMTP id 2AUDwOSq000545; Wed, 30 Nov 2022 14:26:06 GMT Received: from nam10-bn7-obe.outbound.protection.outlook.com (mail-bn7nam10lp2109.outbound.protection.outlook.com [104.47.70.109]) by iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 3m398ffvc8-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 30 Nov 2022 14:26:06 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=j1EdM8Kuurje253eh1mQGsHkthdteys0VAfS+YdBX4GBe3Ze7ufdUjTg36JM/Z9CZxKAm+hjAFe1anTLayLklDZdaKnKAX7KG7EyQH7RzdZ3I3he9/0n5wmFMBOMHCB0jIaE5K9ayz+asvpXAkmxqDxmYzp+dUSxPrPv184CJ4G3OuLxteK4RlY4bar3h/2C6oG1RxbJj3OZ3sEfxgTJX8OC2EYPsE3thyXHsdNjNnFySN7gBMueG+KcBm9WDnSFLb3M5WeiHnWiPJPaSBxC6tZkDDnzyuerNgBYOFIpGa/gB/RqI2qI09avaA3wJazozvxxh4mOUBVvklnQngO7tg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=u3Gh+Zq0TYkfSTw5pt13ppy0S11sXoEEKgR+csqa8Uo=; b=YxyMNaTF7aep4GWkyXDBORWqFrS2DolWb0pKFvEa5e/H2cx4F6MQ00FHz601Hbcxq4O0EvXwNzTwUsgpd9B4RYerw9/mogOZA8bvC7nTvOGpyVWzymVOa8LgIKKGIzInAYZr+hjpOmEv5Xw7Ns+3QpTOVLBjrXHndIsEQ3sLaCQ2vLlOLJ6ZsffLBEvoFwchi/nViGP+MGEbgYjz6Ymh9nDNlCsEqm8Xip0QCQ+mWqZANye0Y0nj1TCs4DGmhKjRrn5UpuzF2XNtjiQD1B4/eq7pVAJASmSs2vpYtdfRhDhqdSoQakggmR01CKIHZfnu37WAERURqZS9cWgcaaJK5Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none Received: from CH2PR10MB4344.namprd10.prod.outlook.com (2603:10b6:610:af::19) by PH0PR10MB6982.namprd10.prod.outlook.com (2603:10b6:510:287::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5857.22; Wed, 30 Nov 2022 14:26:05 +0000 Received: from CH2PR10MB4344.namprd10.prod.outlook.com ([fe80::9423:79b3:c0dc:1113]) by CH2PR10MB4344.namprd10.prod.outlook.com ([fe80::9423:79b3:c0dc:1113%8]) with mapi id 15.20.5857.023; Wed, 30 Nov 2022 14:26:05 +0000 To: rguenther@suse.de, joseph@codesourcery.com Cc: gcc-patches@gcc.gnu.org, keescook@chromium.org, siddhesh@gcc.gnu.org, Qing Zhao <qing.zhao@oracle.com> Subject: [V2][PATCH 0/1]Add a new warning option -Wstrict-flex-arrays Date: Wed, 30 Nov 2022 14:25:55 +0000 Message-Id: <20221130142556.3079865-1-qing.zhao@oracle.com> X-Mailer: git-send-email 2.31.1 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: BLAPR03CA0121.namprd03.prod.outlook.com (2603:10b6:208:32e::6) To CH2PR10MB4344.namprd10.prod.outlook.com (2603:10b6:610:af::19) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CH2PR10MB4344:EE_|PH0PR10MB6982:EE_ X-MS-Office365-Filtering-Correlation-Id: 878055fd-9b46-439e-71fd-08dad2ded07f X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: rH+r+z+091MrDUqUrR94mE6q8l+l8HhUCTRc4Ox/y4Cm2GCOaa0athBwM8jUrAi5fPHvdFfZRK86wk5NO+2Q0olqP8xjU7MiSUDCrRcssPsg5duxKfdw+RJCKKEq8i9oj/qABFeDiHB1vodTzrqtpjO52RzocaBr+YqdCwzIJGUOmTcEhy+AfKlLBZyvAUMmJmp/bdbLqE5iGfguCklqYiT8zPkpPBJz5wPKbigLG5kzRfkYBPby+okh0xsrdizBYi8mkT3nuX0R/3YBbwcI2tiqWS1M94zNRn4OPpKxHABSwC2oKR2eA4PgnlfDDtaGlUsNg2Ar0p45i2nFRbGqkecBOmyXuo02CJMJoiDR/qi3XW66eTjOh2wAFBr4Z3TCSdn2MJ2XgCc5cyydZJVU5/qU5e37aC5STwIDFlTs3xkZSDX7+3Ffga5F2SeN8VSh/2LJFoHG/kV4YfRSvo0NPxjllAasS0XfBukhdPn4K1FxIV2XW3P5sRjYys93Q3myb3b4OfRz47z+Tm6ElNoRmDq1sWIlMXWrOgz9l5v6Dv3C86BftltmESxcWjfYhAf/W5EJMthDfkwM1DgMlsZZrbPBH0vYarVXdO+Sk62LHs7QM7ouFq1OUtaicbTB9RPBsa757u2mVA4NG5H5RLtjCg== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:CH2PR10MB4344.namprd10.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230022)(39860400002)(376002)(346002)(136003)(366004)(396003)(451199015)(36756003)(41300700001)(1076003)(66556008)(4326008)(6666004)(107886003)(6486002)(2616005)(316002)(8676002)(8936002)(26005)(86362001)(6512007)(2906002)(5660300002)(66946007)(66476007)(478600001)(186003)(6506007)(4744005)(44832011)(38100700002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: CoQ/dezOMXIiIh/R3mz6IdhxKZK8F+oT9eLmAG4Zjsx9RTTJjAaY3EWjtfhgnZeMY8t14XtIatoh78adgjgtEpe/9o9Qsm/7YzW2pEYGbbSFedAIefvBcYTgASvrUw9vMK2ZYtspUiw2I65+9wqsJOVy5XVrrmuVPWaIG18k50FRYfUrngT+eHGXxhSZFrxfzO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ygb8tT/GuQP/5aCoaODA1loWEVXSzTcEiWHHqmvCHzGH36jQ1VVoXoPuvc6enCW3Kh7i/OJ0j6qAyicRHYltfl2wsJmWTKbfVgxv4n2RgcnnCQcYEjrfNTJYsSv4skAH+8eqB/uIwFds8mTcR6tulWNzJrlJUSYHMkS/XjUZXQdrTfAPjLEjocme0ZKu4CWS1FO6+XQvlTd54dvQME8WhV X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 878055fd-9b46-439e-71fd-08dad2ded07f X-MS-Exchange-CrossTenant-AuthSource: CH2PR10MB4344.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Nov 2022 14:26:05.0338 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: T51hP1O2IbAMAXoMWClo2A38YlrURgOYYlfO7s7V9WsTdI6JNIbo0Z/mJIOKSQlWc47qCistwNB9MidaYchAkg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR10MB6982 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.895,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2022-11-30_04,2022-11-30_02,2022-06-22_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 adultscore=0 mlxlogscore=784 spamscore=0 malwarescore=0 phishscore=0 suspectscore=0 bulkscore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2210170000 definitions=main-2211300100 X-Proofpoint-ORIG-GUID: TyvOxNSPRgDtFbpqE1bwKuBSj5HMlZo6 X-Proofpoint-GUID: TyvOxNSPRgDtFbpqE1bwKuBSj5HMlZo6 X-Spam-Status: No, score=-5.3 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_DNSWL_LOW, 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 <gcc-patches.gcc.gnu.org> List-Unsubscribe: <https://gcc.gnu.org/mailman/options/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe> List-Archive: <https://gcc.gnu.org/pipermail/gcc-patches/> List-Post: <mailto:gcc-patches@gcc.gnu.org> List-Help: <mailto:gcc-patches-request@gcc.gnu.org?subject=help> List-Subscribe: <https://gcc.gnu.org/mailman/listinfo/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe> From: Qing Zhao via Gcc-patches <gcc-patches@gcc.gnu.org> Reply-To: Qing Zhao <qing.zhao@oracle.com> Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1750931529915753378?= X-GMAIL-MSGID: =?utf-8?q?1750931529915753378?= |
Series |
Add a new warning option -Wstrict-flex-arrays
|
|
Message
Qing Zhao
Nov. 30, 2022, 2:25 p.m. UTC
Hi, this is the 2nd version for this patch. Per our discussion, I made the following change compared to the first version: 1. The level of -Warray-bounds will NOT control how a trailing array is considered as a flex array member anymore. Only the level of -fstrict-flex-arrays will control this; 2. Updating the documentation for -Warray-bounds by clarifying this change. 3. Updating the testing cases for such change. I have bootstrapped and regression tested on both X86 and aarch64 without any issue. Okay for committing? thanks. Qing