Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp7959662pxu; Sat, 26 Dec 2020 10:28:16 -0800 (PST) X-Google-Smtp-Source: ABdhPJyZSP750NWpMIv84q4bCtJ/HVxkTXXKEBgdm+ukZ6MLfQY4b0kWjCcZWbK/xSgjgvdpAKkp X-Received: by 2002:a17:906:30c4:: with SMTP id b4mr35309123ejb.456.1609007296093; Sat, 26 Dec 2020 10:28:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609007296; cv=none; d=google.com; s=arc-20160816; b=gi72KrY+wJune1P7Rg03JIh+70HpsqapAZTpULMzxPo8bLT8ooW5UjQLZfKXV9pTYU MvKd9O0A+UPLaJdOBUS4lCjnHQTVunQIT9OaJ5Ve7ziGxwMjCRFowWDn1eREpKlm9Hj6 FcrDYO7nekeUYJchlBS//5QsfT4bq8u0bc5P4iCvwAUCoblKa9t/PWUYSfk6s6eklUPh yNm9SRCW+VaGZVieDYo4tDxGEfgewVQ79ahPDvvCglfNAJNGmLJkbiI9NUCYeaGHhjUN ot6uAabRSjBfPlVX7/wVo0nd4Wl766utVurz5vRcA+3TS6ZUD4F2E6vjVFuMmtZXT2Pa TRww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:content-transfer-encoding :mime-version:subject:cc:to:from:sender:dkim-signature; bh=D+kHeN95QvK9fHDBFMsaUzhC0Fat+pl46x/ZsCCKvVg=; b=0avxzLzwqQ19lGUaK1qNCo2EbOJofaVLZyuWj1Pp8N1dk0nRr/ta+F6N7zdnflXmgS n+Ii3gJ4a0abaOLgbiE3tI0lQCdAnOzC77pv4T2GWlJezRy5M/a9/D9w6CHjzJDPPdjo RyL5pCL4VKrH7nq1/18gI3pop0P3M5s1MpN2qOjs2P7oahZmBe2cK+gZ2rTG02YKOsC3 LvajcDGbtdyHamRNCKVS5mDa1lcZ+tNeBnCbNuUuq8T4DTv4ae3pSmlPO35aqxF7KfMx UtEc4bRpcLVkv6U0UwRKLSVrEeZVGLSJHcS7UA5vj8wsORD6hoaQiO+MzxickUT0CxuZ 1XOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@vt-edu.20150623.gappssmtp.com header.s=20150623 header.b=Li6CrAmL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=vt.edu Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e5si17684352edc.19.2020.12.26.10.27.53; Sat, 26 Dec 2020 10:28:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@vt-edu.20150623.gappssmtp.com header.s=20150623 header.b=Li6CrAmL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=vt.edu Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726021AbgLZSWm (ORCPT + 99 others); Sat, 26 Dec 2020 13:22:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52638 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725993AbgLZSWl (ORCPT ); Sat, 26 Dec 2020 13:22:41 -0500 Received: from mail-qt1-x82a.google.com (mail-qt1-x82a.google.com [IPv6:2607:f8b0:4864:20::82a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 66A77C0613C1 for ; Sat, 26 Dec 2020 10:22:01 -0800 (PST) Received: by mail-qt1-x82a.google.com with SMTP id g24so4512534qtq.12 for ; Sat, 26 Dec 2020 10:22:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vt-edu.20150623.gappssmtp.com; s=20150623; h=sender:from:to:cc:subject:mime-version:content-transfer-encoding :date:message-id; bh=D+kHeN95QvK9fHDBFMsaUzhC0Fat+pl46x/ZsCCKvVg=; b=Li6CrAmLLj+LiFS8xFdtBy897Ivll7m+VGUGT0z1O0Qx4AdGLaKOlQCzsyepC6UxZq Rth8NRk0f50lz9SzWxWTZmhzVy6oO7y9ILYNgo6NsahwffnRQtuLdE+AaD9CE94BF5rJ h43AGJJNib3EZUzPu88WuPfw8STAaqZ0KiCuf332iRzIQz3YABEbdPW5KWDXBzLP43de x5O4BOB2eKc+tfUAWFi4siwTfNMdbIudkbhn1dCXLfSKCRXbg37bP8vPUab4BVJ/KrPi RAuD7zokTCp9ceRY6mQleS4m+J14cwbFwkOW0nBVBbcReNaFhXFRWAInweSwZ6Q3R3eQ r1Fg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:mime-version :content-transfer-encoding:date:message-id; bh=D+kHeN95QvK9fHDBFMsaUzhC0Fat+pl46x/ZsCCKvVg=; b=NqBjZ0Mq9KNEyW2I7Cj0egfCz9G4gLjjOm0mVOQS8N4caxfjcikobdpfvZA6cF52bh cPsU6e3Y51Pav/inKtrgfcVjRvGpihvFvhPikedsGM78aexJoV57Ky307VLKmwQbIOCh RKY4uwOnXaaTy5wgWPG4Ppj1f/gaTXoRmRz82n8GqsmQZ7uVR/692TQg2URzYJ4oE2a6 Z4w5Qujok+8yzLV+ax4PBEsgNKbJkhlNAhfR28zUBtSrzw4YVUboMEKnleeH+dwy/m60 l7So9ulv+vBprMazi+0NcFaV2bK5RfZ9xHTnfp6s+SBh9cEgcf2HSE/tlyQZZ5vnvpjS Qszw== X-Gm-Message-State: AOAM530w/zTiFHcj8XjPrGtH6hSWb/S+AkC8kIjTxMeTHU+8sfFVQlhn ir23Hb8W18z6zlp01/T5o+c58A== X-Received: by 2002:ac8:590f:: with SMTP id 15mr37721763qty.249.1609006920310; Sat, 26 Dec 2020 10:22:00 -0800 (PST) Received: from turing-police ([2601:5c0:c380:d61::359]) by smtp.gmail.com with ESMTPSA id 193sm21176086qkj.105.2020.12.26.10.21.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 26 Dec 2020 10:21:59 -0800 (PST) Sender: Valdis Kletnieks From: "Valdis =?utf-8?Q?Kl=c4=93tnieks?=" X-Google-Original-From: "Valdis =?utf-8?Q?Kl=c4=93tnieks?=" X-Mailer: exmh version 2.9.0 11/07/2018 with nmh-1.7+dev To: Kees Cook Cc: linux-hardening@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] gcc-plugins: fix gcc 11 indigestion with plugins... Mime-Version: 1.0 Content-Type: multipart/signed; boundary="==_Exmh_1609006918_4356P"; micalg=pgp-sha1; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit Date: Sat, 26 Dec 2020 13:21:58 -0500 Message-ID: <82487.1609006918@turing-police> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --==_Exmh_1609006918_4356P Content-Type: text/plain; charset=us-ascii Fedora Rawhide has started including gcc 11,and the g++ compiler throws a wobbly when it hits scripts/gcc-plugins: HOSTCXX scripts/gcc-plugins/latent_entropy_plugin.so In file included from /usr/include/c++/11/type_traits:35, from /usr/lib/gcc/x86_64-redhat-linux/11/plugin/include/system.h:244, from /usr/lib/gcc/x86_64-redhat-linux/11/plugin/include/gcc-plugin.h:28, from scripts/gcc-plugins/gcc-common.h:7, from scripts/gcc-plugins/latent_entropy_plugin.c:78: /usr/include/c++/11/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support must be enabled with the -std=c++11 or -std=gnu++11 compiler options. 32 | #error This file requires compiler and library support \ In fact, it works just fine with c++11, which has been in gcc since 4.8, and we now require 4.9 as a minimum. Signed-off-by: Valdis Kletnieks diff --git a/scripts/gcc-plugins/Makefile b/scripts/gcc-plugins/Makefile index d66949bfeba4..b5487cce69e8 100644 --- a/scripts/gcc-plugins/Makefile +++ b/scripts/gcc-plugins/Makefile @@ -22,9 +22,9 @@ always-y += $(GCC_PLUGIN) GCC_PLUGINS_DIR = $(shell $(CC) -print-file-name=plugin) plugin_cxxflags = -Wp,-MMD,$(depfile) $(KBUILD_HOSTCXXFLAGS) -fPIC \ - -I $(GCC_PLUGINS_DIR)/include -I $(obj) -std=gnu++98 \ + -I $(GCC_PLUGINS_DIR)/include -I $(obj) -std=gnu++11 \ -fno-rtti -fno-exceptions -fasynchronous-unwind-tables \ - -ggdb -Wno-narrowing -Wno-unused-variable -Wno-c++11-compat \ + -ggdb -Wno-narrowing -Wno-unused-variable \ -Wno-format-diag plugin_ldflags = -shared --==_Exmh_1609006918_4356P Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Comment: Exmh version 2.9.0 11/07/2018 iQIVAwUBX+d/RAdmEQWDXROgAQL+QQ//VlQ8W9zmlGGNw9N87wt0a73K7ttGSb7e ZZZNDroD3jM77BtJBpJ99p/6M98NNMsUktOATnTvUdWMy7JrSenDr0DReZPGdI84 qjRV0XQM0LDx99Osc0D+FuQGuSeLrtyHmFI7bBH893S8SX4DpKjL4614GJ6eespi qBYFV99f3YgN9RXg6OZSMwTcWKMMcmsE9wyYmR4H02TMr+ajqx1dv+mp9JnmYNhO /CamaxFicoEPwAYoQHuw2xWVszP4JV8Zta/K5eHnwaOYeXHfkh2qwP1+KbbYTEzL PSXHQPauO2psGIfxIIBVw8xb6pXrncWc3wzg1D/nr6VVzEDk1c7fwT7DMMnXWO6X 3zsnAk7509L9hdxVbYBFbFby8V47xnDrH4tVvOCvTjzUh8ujFb9K7m89e+hKaOGm yCfqRUvUy8m9CZJQNOHmzNKvYoOahIEWSjkVIJN0DBiK57y3lLfkA7BU0G73kN49 aj4gpwbzSXe9iEvP1fa8ntq/amrc/nItNFwW0eIMzuMT9aKDIUupqfhD6VWRG4ve nYBOoeuSaddj0UgpY28q4ZH9Xd2/BZSKKfInYd5Fy8kNfiGilNGWpLeVEJ3QH77q JMWHW7N1ZxPF4umPhfQ+Pw1eR2EZof+n4Iqv5EWKoJxenNU1Wxw96wyMXJsVm5C7 hm7B40xKJuo= =F4DK -----END PGP SIGNATURE----- --==_Exmh_1609006918_4356P--