Received: by 2002:ac8:1418:0:b0:3ab:920c:4c8b with SMTP id k24csp3130733qtj; Wed, 18 Jan 2023 13:36:52 -0800 (PST) X-Google-Smtp-Source: AMrXdXvX3y1diSxCYU9dcxywKQ+q0HYMaVw9bx7A3BQYcN1T1wWGpxfK5UsXAkWOjjUuG0QKYZes X-Received: by 2002:a05:6402:1c10:b0:49c:fde2:a6f4 with SMTP id ck16-20020a0564021c1000b0049cfde2a6f4mr8625862edb.15.1674077812704; Wed, 18 Jan 2023 13:36:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674077812; cv=none; d=google.com; s=arc-20160816; b=MjK3Yt7a8GHbj75ucVbnZSC+p8doIjZnzfkrYPLNk0rg8/AHIMCq2PzP5KW2GUZbfs NpOyp30wntkr/lJ8Eqb5BgHO/euW5tOtUQY+iQML/Q6Put5n+l6hAHS5rk1PGDqsaWjg BsqzKimivIfA9FXMLIleriuYHQ/6nFzfyOXDE2bT6KlcldiQ8fvkpklVZCjpLqAp8dnY NaRXH9JuCloo4xP4nDwZr8iIMBox4SAoMTumeW85sCFp+UNut/tP5jTs6PgSaRG+BZl2 vaaPy2piV5KRGkyIB7ZP34sc3BpEVXQKhrcSzPQYBFb4SqXhSkn35QYCf4akXSpjHdpy LGfw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:to:from:cc:in-reply-to:subject:date:dkim-signature; bh=46uvpXl2kyYV0aM1iCgQPff7hpPKEZ+B8VHs2uJkR+w=; b=BW2pV82yzg2Id1Zr3s3fGrxC1yFWyyMJxP17DpI3G1xrQ4KrfTWFWyk0L/+dqTni32 +rUvlGvRtA1mqqjBwvzTpt+/DEC6atZdYgOgh3AJgJ3oDo0oYjxDiEmAZd7m9g8w0udT Ga3mPahJlqMuxS+PB0rJva/xpTEnS8zLl2M6NkXS+Z6tAM3Y+4s6Ab+q3HrU5SpVuOZh EV+1tKF270KdHG7a1wa0au8V0PaB8JfANEXUw1VDxJ1QBee2SijWqiyQrVvkqQyEI1lk x1ZcW0oCb7k3ImG5/+Q+LR/Lioc9yKlv4WJtKxlNFNfAw4dCLwahWQB3tRkaq9zLICdi MqUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rivosinc-com.20210112.gappssmtp.com header.s=20210112 header.b=dVrLXEca; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l16-20020a056402255000b0046197a8b7a1si31983773edb.485.2023.01.18.13.36.41; Wed, 18 Jan 2023 13:36:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@rivosinc-com.20210112.gappssmtp.com header.s=20210112 header.b=dVrLXEca; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229973AbjARUZV (ORCPT + 45 others); Wed, 18 Jan 2023 15:25:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34830 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229883AbjARUZR (ORCPT ); Wed, 18 Jan 2023 15:25:17 -0500 Received: from mail-pj1-x1032.google.com (mail-pj1-x1032.google.com [IPv6:2607:f8b0:4864:20::1032]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1597153566 for ; Wed, 18 Jan 2023 12:25:17 -0800 (PST) Received: by mail-pj1-x1032.google.com with SMTP id v10-20020a17090abb8a00b00229c517a6eeso3632634pjr.5 for ; Wed, 18 Jan 2023 12:25:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:to:from:cc :in-reply-to:subject:date:from:to:cc:subject:date:message-id :reply-to; bh=46uvpXl2kyYV0aM1iCgQPff7hpPKEZ+B8VHs2uJkR+w=; b=dVrLXEcaBgvYU97sVNjHhooNFluRwtCPIzI//8G66FkmP1s40nUOucz3RYYRCmKPEx fgAuo93zirmhoRnivzsrrpUlIi7sQ0gBclnpogdyRCed3aYi5zJIfP2UUAlSRaGHu3FY EJ/SCqvd85Pez6eZdqkI7PJHIqi08dl2llj6SGz+7m9awA47Z8PY5ht2YfomVwqW/N4c o+mLDbKw/NnG/cjzG+m1KedoySUjoabCM0SJm+w3pf8PXQQlL/D4EpRJyOBeZXJZwxKA EaO/qCyf3Abk921jr1UjDFVflLUTdJsuOxZSfxhi8yIYOerNOpUxe4hmrjpb0+VxEYJz VQPg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:to:from:cc :in-reply-to:subject:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=46uvpXl2kyYV0aM1iCgQPff7hpPKEZ+B8VHs2uJkR+w=; b=4Eih2pADF8+H6PCxEERGlh3dVrBkKcTD1Q9Jcjo3qOOZPgaZ+SD2Tgj05GyIIjFhyY GsKK8JsIioFsShWNNlbHWqV41+2oMN2z8LNAyLMOUhykCvZW/qZohz7cQOdKPBOIvtz2 PKEQob+Zxrq1BlrDJQ9TyOdZhWJyvAMczEuubGx+phMtquwF+NxgaDlszD4lp2f/BiIC GetDC6cmefANjOpNW/NOSqzLfqHKHxKLAiajSezFddwdMUlKtwNJekwXXJLiWbHwHlYx RrEeElevgGoCtYQKIVtCEyUT6nB/mY6r5qXlp7uRb9qCy9QRFGNMK9ZPH1DnsEPH91gu /L0w== X-Gm-Message-State: AFqh2krpKHxvbPk6vFWbiELbdvGSFqzww7NUks/RTrj964oaqVPTbFtO RSrSNxFf1cV+/70Lw02Dllh1Bw== X-Received: by 2002:a17:902:ea02:b0:194:8f3c:6fc6 with SMTP id s2-20020a170902ea0200b001948f3c6fc6mr11573013plg.58.1674073516510; Wed, 18 Jan 2023 12:25:16 -0800 (PST) Received: from localhost ([50.221.140.188]) by smtp.gmail.com with ESMTPSA id l6-20020a170903244600b0019467381dd6sm11523541pls.33.2023.01.18.12.25.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Jan 2023 12:25:16 -0800 (PST) Date: Wed, 18 Jan 2023 12:25:16 -0800 (PST) X-Google-Original-Date: Wed, 18 Jan 2023 12:24:47 PST (-0800) Subject: Re: [PATCH] gcc-plugins: Reorganize gimple includes for GCC 13 In-Reply-To: <20230118202355.never.520-kees@kernel.org> CC: linux-hardening@vger.kernel.org, keescook@chromium.org, linux-kernel@vger.kernel.org From: Palmer Dabbelt To: keescook@chromium.org Message-ID: Mime-Version: 1.0 (MHng) Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 18 Jan 2023 12:24:02 PST (-0800), keescook@chromium.org wrote: > The gimple-iterator.h header must be included before gimple-fold.h > starting with GCC 13. Reorganize gimple headers to work for all GCC > versions. > > Reported-by: Palmer Dabbelt > Link: https://lore.kernel.org/all/20230113173033.4380-1-palmer@rivosinc.com/ > Cc: linux-hardening@vger.kernel.org > Signed-off-by: Kees Cook > --- > scripts/gcc-plugins/gcc-common.h | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/scripts/gcc-plugins/gcc-common.h b/scripts/gcc-plugins/gcc-common.h > index 9a1895747b15..84c730da36dd 100644 > --- a/scripts/gcc-plugins/gcc-common.h > +++ b/scripts/gcc-plugins/gcc-common.h > @@ -71,7 +71,9 @@ > #include "varasm.h" > #include "stor-layout.h" > #include "internal-fn.h" > +#include "gimple.h" > #include "gimple-expr.h" > +#include "gimple-iterator.h" > #include "gimple-fold.h" > #include "context.h" > #include "tree-ssa-alias.h" > @@ -85,10 +87,8 @@ > #include "tree-eh.h" > #include "stmt.h" > #include "gimplify.h" > -#include "gimple.h" > #include "tree-phinodes.h" > #include "tree-cfg.h" > -#include "gimple-iterator.h" > #include "gimple-ssa.h" > #include "ssa-iterators.h" Thanks, not sure how I missed it the first round. My testing box is tied up, but I'v egot the same diff lying around somewhere so Acked-by: Palmer Dabbelt Reviewed-by: Palmer Dabbelt