Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp1273001rwb; Fri, 13 Jan 2023 10:00:50 -0800 (PST) X-Google-Smtp-Source: AMrXdXtAMxkHI0Khfl/P5mwVksWPx5LkKokfNGy3LC13X2X1SZVyXrFb2nE8xpGcNpkuo7+nvkmB X-Received: by 2002:a05:6a00:2a07:b0:58b:9b4e:5292 with SMTP id ce7-20020a056a002a0700b0058b9b4e5292mr10571818pfb.1.1673632850073; Fri, 13 Jan 2023 10:00:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673632850; cv=none; d=google.com; s=arc-20160816; b=ZDx/lge+hUd7dpNQKhKqYrdAag4yDPEd2sjkWQOJOIdweVnAorH9zrwQVH5ioygZlq 8Y6hncljwAK47EsRUOqE+QLbY4MEFC5Pzsre+SvALTha15/rSa+gqE8pda2eGW4m+0uU SnySC5/zvBP6OKdArIl7BjLrSADZ/Rbd0T+VsBF1UUydLV8jAKe6qbn62wsDzx+kmduS EX3IVfYswZ+gbepvhm9tiO76cobSF5N3IwOttbiVYc8qbVhzqa/dXqNkitP0VBc/eMBr df7tXKcACWnB9y15jmOXRdGdWcvAgwGRcCbtq3zm1OP4v5XNuOcl1AQPVA8HzM5s0mFP hYxg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:from:cc:content-transfer-encoding :mime-version:message-id:date:subject:dkim-signature; bh=0Ajo4CWXsqrUX3ohXlBgBJ+26DhK51lKwOhdTubtp1w=; b=OlCbUhtqsN76MPotRQGtqeF4u7ibkQxfvbSXlp1H6uGkIFlQrKxwPH0rniL4dsV9fZ zhdXxQRVk7dRToyrZ3q24vH0atRNeRZ+HN7w9qQWlKirXNubNF0VA9ONmE+553blqaWb 9xIH6DGaKfKE3RBmrpc2ZoUSTt1QxWxTa2VH5dfNw6WCLuogk7b2m7VGtu8wK6eqKzj7 /hLJSGF27MzZFKmtk5MHC0piXj1K8MJP7HaOVQF/gqLlHUpky30McI8sCAU1k9md+5UM +p6YvWAWpz/g1UjbOva8IuVD2H2E+hb4GM15ZH9eLLzkCysb/Rm/ekguGVZQ9WuckeZE 9DLw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rivosinc-com.20210112.gappssmtp.com header.s=20210112 header.b=Y1oOYqzI; 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 v3-20020a62a503000000b0058bc2e77660si660178pfm.37.2023.01.13.10.00.43; Fri, 13 Jan 2023 10:00:50 -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=Y1oOYqzI; 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 S230237AbjAMRpD (ORCPT + 51 others); Fri, 13 Jan 2023 12:45:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55488 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229909AbjAMRoh (ORCPT ); Fri, 13 Jan 2023 12:44:37 -0500 Received: from mail-pj1-x102a.google.com (mail-pj1-x102a.google.com [IPv6:2607:f8b0:4864:20::102a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9F059801E9 for ; Fri, 13 Jan 2023 09:31:55 -0800 (PST) Received: by mail-pj1-x102a.google.com with SMTP id dw9so21660535pjb.5 for ; Fri, 13 Jan 2023 09:31:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20210112.gappssmtp.com; s=20210112; h=to:from:cc:content-transfer-encoding:mime-version:message-id:date :subject:from:to:cc:subject:date:message-id:reply-to; bh=0Ajo4CWXsqrUX3ohXlBgBJ+26DhK51lKwOhdTubtp1w=; b=Y1oOYqzI0RHDiNGu/mAaa4CrQgYa0yjxlmFCX7cKtOZFCdtQXEHoUM39Pt8wsk4NOT tZWt8fmmpjLzGI5OGAhKKwByKjmS/aEplehloP/sREnFbbWDTkd4da5fc3OfELLfunN3 Nzvt2QYmMpcds5Wt7ZBK7k0vPoTYQ/2u8mgCQFn+7iw/OB8/9XXKgZOhFaWTDuxkiOK0 59GIxncoACFjSq4biZhJNNG8QHYhTPttvOeI0bYOn1TQ/yjdq0hEOWYXOgAM3sGx9QHR AcKFmnKDpQGDtrLkE7aKStuMwf/VqvTRgkoLz1oQJ0bgPFh2N9Zpx/7uacJYInhHEY3z H7fg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:from:cc:content-transfer-encoding:mime-version:message-id:date :subject:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=0Ajo4CWXsqrUX3ohXlBgBJ+26DhK51lKwOhdTubtp1w=; b=6cZRd0SNgKM/NtmbFGZstrsNLHFRHJwYsk1KGtOrdx9cwjcvfGPu4rQpaI7TTsFNz0 ZluPhLKW25OKBD4AlX0xMYdUCPC7g6kO5NImcjLFDwAoG3apU/2Fk8Rm7Qc4IlKA+5qR ZriECUOizvWraR90mUyFfEY8Zk3KOmdVW/f02MPvTih4sD3rQ8ZQVU+FEltVcvqz+RC5 jBIAVjUufqnF0fi0RqD3A9TXEGl0tyVKe7JfPDaDjaIysCNbClsNqEC7y6zXrrOppGtv OTg+9A4X2/STS9BqCwYLzuFN8gzwDTZW5x57FRpsrEkiXOzapoMComj+S2BjdiwIxRqm +Iaw== X-Gm-Message-State: AFqh2kortgphGu2oKAOxsBSaCsvkeaZJxJxatwLsjaqr2oy177p48SOw z9r0mbaOEi/YVFMDbMHRDXQ/yPfdaFPiFTvp X-Received: by 2002:a17:902:ebca:b0:191:117a:414f with SMTP id p10-20020a170902ebca00b00191117a414fmr94043643plg.27.1673631115023; Fri, 13 Jan 2023 09:31:55 -0800 (PST) Received: from localhost ([50.221.140.188]) by smtp.gmail.com with ESMTPSA id d17-20020a170902ced100b00168dadc7354sm14466494plg.78.2023.01.13.09.31.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Jan 2023 09:31:54 -0800 (PST) Subject: [PATCH] gcc-plugins: Fix build for upcoming GCC release Date: Fri, 13 Jan 2023 09:30:33 -0800 Message-Id: <20230113173033.4380-1-palmer@rivosinc.com> X-Mailer: git-send-email 2.39.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Cc: linux-hardening@vger.kernel.org, linux-kernel@vger.kernel.org, linux@rivosinc.com, Palmer Dabbelt From: Palmer Dabbelt To: keescook@chromium.org 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 From: Palmer Dabbelt The upcoming GCC release has refactored the gimple plugin interface a bit and unless gimple-iterator.h is included before gimple-fold.h I end up with a bunch of missing declarations when building the stack protector plugin. Link: https://inbox.sourceware.org/gcc-patches/CAFiYyc2q%2Bc-0uZb-zAskmR_U%2BM%2BxQfp-W00ZbLErfjx=j5qHGg@mail.gmail.com/ Signed-off-by: Palmer Dabbelt --- scripts/gcc-plugins/gcc-common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/gcc-plugins/gcc-common.h b/scripts/gcc-plugins/gcc-common.h index 9a1895747b15..2c3a3079128a 100644 --- a/scripts/gcc-plugins/gcc-common.h +++ b/scripts/gcc-plugins/gcc-common.h @@ -72,6 +72,7 @@ #include "stor-layout.h" #include "internal-fn.h" #include "gimple-expr.h" +#include "gimple-iterator.h" #include "gimple-fold.h" #include "context.h" #include "tree-ssa-alias.h" @@ -88,7 +89,6 @@ #include "gimple.h" #include "tree-phinodes.h" #include "tree-cfg.h" -#include "gimple-iterator.h" #include "gimple-ssa.h" #include "ssa-iterators.h" -- 2.39.0