From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pj1-x102e.google.com (mail-pj1-x102e.google.com [IPv6:2607:f8b0:4864:20::102e]) by sourceware.org (Postfix) with ESMTPS id 6C6AD385829F for ; Wed, 27 Jul 2022 22:39:06 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 6C6AD385829F Received: by mail-pj1-x102e.google.com with SMTP id o5-20020a17090a3d4500b001ef76490983so396137pjf.2 for ; Wed, 27 Jul 2022 15:39:06 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=DLfxQ/aOjRyD+e3Nl6CaKI3peQZ8JqiPZkqR9F4YPTM=; b=uZzmN+Yl4KxWoOecb+5Cw+msFVpVoxe58Z6gLRIZiDp55p8OlSjH2Bn3VeYWU7QfpI 4TVNw+cBcyURMpWc9bvvde0q5E5cI0ruZBFWKG5q6tJ24tEJiJBvJAGqJzuhLIf5Rkte DfFiCv5VCXprJSNHk3UD+35/bBrT7LDutgW+BdS/C82IqSHALM0OhIYALTIOdnc+o/Xe oibK2bPWLWkZbX5uDgexqCccY6YQ3BGsGVA0TA49serzBhqEBfB/Le2Kr6YY4yPySoHR 7J3yr3FNfphJxDWhLtHZpGi9pBiw6WFX6SzhVjpknN2szCj9fppYuRI9onArja6GvmkA nOuQ== X-Gm-Message-State: AJIora/G9z98zYXcs9RwIlv5vx04GFt1/ywMldeaanRRjMzllcJ57i7Q ERfLGmwfmjMH2gzfNLsIL6QF9A== X-Google-Smtp-Source: AGRyM1sNsBNUs0iEXfzbjBAXtvlD4rqn4I4fgaNNiLuYR6fxcsml7uf1IB5vqBPAnaejHRFXjPte4A== X-Received: by 2002:a17:903:230a:b0:16c:58a3:6395 with SMTP id d10-20020a170903230a00b0016c58a36395mr22494219plh.20.1658961545346; Wed, 27 Jul 2022 15:39:05 -0700 (PDT) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id k12-20020a170902ce0c00b0016c46ff9741sm14263919plg.67.2022.07.27.15.39.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Jul 2022 15:39:05 -0700 (PDT) Date: Wed, 27 Jul 2022 15:39:04 -0700 From: Kees Cook To: Qing Zhao Cc: gcc-patches Paul A Clarke via , jakub Jelinek , richard Biener , martin Sebor , "joseph@codesourcery.com" Subject: Re: [GCC13][Patch][V2][1/2]Add a new option -fstrict-flex-array[=n] and attribute strict_flex_array(n) and use it in PR101836 Message-ID: <202207271537.6BD7D5DF4@keescook> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-9.0 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, JMQ_SPF_NEUTRAL, KAM_NUMSUBJECT, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, 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-List-Received-Date: Wed, 27 Jul 2022 22:39:08 -0000 On Tue, Jul 19, 2022 at 02:09:46PM +0000, Qing Zhao wrote: > [...] > diff --git a/gcc/c-family/c-attribs.cc b/gcc/c-family/c-attribs.cc > index c8d96723f4c..10d16532f0d 100644 > --- a/gcc/c-family/c-attribs.cc > +++ b/gcc/c-family/c-attribs.cc > @@ -101,6 +101,8 @@ static tree handle_special_var_sec_attribute (tree *, tree, tree, int, bool *); > static tree handle_aligned_attribute (tree *, tree, tree, int, bool *); > static tree handle_warn_if_not_aligned_attribute (tree *, tree, tree, > int, bool *); > +static tree handle_strict_flex_array_attribute (tree *, tree, tree, > + int, bool *); Something mangled these patches -- leading blank characters got dropped? -- Kees Cook