Received: by 10.223.185.116 with SMTP id b49csp908924wrg; Wed, 21 Feb 2018 08:52:32 -0800 (PST) X-Google-Smtp-Source: AH8x226W0WHIC39HN3ZaTjZiDl02feKGh3jE1+390tEPDFwpXDy8R8DtnpkzGO6VawG7xwPvSHoy X-Received: by 10.98.254.19 with SMTP id z19mr3931329pfh.76.1519231952201; Wed, 21 Feb 2018 08:52:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519231952; cv=none; d=google.com; s=arc-20160816; b=vp96if8PY0tHdAx8Aim0CMlwqlDJIO+56/wtfkBCHkQnZ1W9mWWYuZW/E7Ph9uTvcr x8zoeAmlKSYNCOyYrfUdXMOt+iRU2AJlkYXuB3ARZWpeZ5Uq62J6NAm6o+vtQGKbLftb HV/ygLuDSS5EJak9zlqeKBPwlvY03e2jdcF9lnJ3ujKqZn9vjwZACE73DtnwqwEYeKmh aS5U0i5V1WN4FZNdy+fT/iyaF70f5tj7BVO1NTr/a1bvHzDa4ZT/FO8svxO8wcV677bx Y2DBBWR0DlYJPgwevxbw56A4uo54fF/XYee8LDUTjXBUeersUsp3Z9I3Euu0eUBwqwox 2maw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=cjl2ZJ2I/yx2SyjiiNamM0TFnbSgrz7EYwsTR16eyIY=; b=tfHFi7KGf8CTuu+CZ3/LYQQLLoIMox8Cxsbj1oyBxZfrK2sDWDQ5X74m3uddv9kvzm EyuI/JlIVJ7IpqDg+KeF5MtNgB/VBYP2iTY/1F11HT+MobBMGAt+KsgqUyf7wkc+mDJJ 4aWKqKUz5xGsyK9AiLQf3OiKamLaGJZmAqiszijpBy4z5MVLcDF/jLW1pdwkSZhfJBUC hE4g9bRSqfwMnOXp/Y4SHLnhiH/NGoRRBqlxvTSIoNy3NLat++CLyTN+yBGQAIFJV/Ny VuziQI22IabH0iFyZ8pa56G52wteTXY4Et5TnMjXKwdtB9QMiOti1OCCz8jsP/D6765l 40ng== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=UflopgEp; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q2si2694284pgp.627.2018.02.21.08.52.18; Wed, 21 Feb 2018 08:52:32 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=UflopgEp; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753755AbeBUKw4 (ORCPT + 99 others); Wed, 21 Feb 2018 05:52:56 -0500 Received: from mail-qt0-f195.google.com ([209.85.216.195]:45183 "EHLO mail-qt0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751384AbeBUKww (ORCPT ); Wed, 21 Feb 2018 05:52:52 -0500 Received: by mail-qt0-f195.google.com with SMTP id v90so1310517qte.12; Wed, 21 Feb 2018 02:52:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=cjl2ZJ2I/yx2SyjiiNamM0TFnbSgrz7EYwsTR16eyIY=; b=UflopgEpRpJze7h/Q3i2mwBt+Ih87X5Gr58bh/QYjYEfJJWhzlvsTiwHUtY1ltTb4J 29cYqfSvELve+60oSLbeTMtbe9xRA2FMeZLvECDsweMHVML0G5OzLdBRZaX1jAq48FIB mSssFp0Q3A7jq3zPFK1Qh0EGdxKgB58Mj5Ah+2Ycv8uAGr9we6LEO6/y4TbLs3GLHAiz G+WD4MfuTSQ/mdm1KTUBanhUxOkx0O4V4wVuVWTnl9Z92CU9sLQGWTUkA9MGXdaop49b HX1OdxABwywxD2BnWuxgDVcl3FpY8iDiRQdm70S1esP9CZ4I3lQA2xxE2HAKCSe7Qpjk ZTqw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=cjl2ZJ2I/yx2SyjiiNamM0TFnbSgrz7EYwsTR16eyIY=; b=nZ/LCnAD918Qq8hlVjk4D7IN6AtECV2jo3SrHkHku7OJU4DpaOTqyzQlF4lnMPqJ2t mcRS0ddJIZ78lnSLQJ6HJ+Qg+AEYJYKst1spO0sW17RF4LFVJHQ8Vk+bDLh7ExOSGDvz CeNf9lRCaZbTbLBgJqfylzNAgFLYl8IGy7B5bts4xyfr+/0TbqT1IebeTK+5A4f4g4la sk3Ltrs4UjvlmTqnqxtZ2sV+KBKTzFNJBaqen1qVrKFuxmkHQ6xgPi8A0LJipczkqFw5 L6CKD6XJucc5HhpRR/9tUGkBKzhMLl2TcU/OvRMEUEsq8ayQsXvyOIx0NWdvKNxcwmfx bPxg== X-Gm-Message-State: APf1xPC2hrsBAjZloxIpHEFqoa13UlyCJOXMwQz0sE6qS3f+8Zve0yJa RJ7Yc/Sl5fWFjRfo991lULXQZOsf/w77rabug9GHZg== X-Received: by 10.200.47.53 with SMTP id j50mr4422939qta.185.1519210371216; Wed, 21 Feb 2018 02:52:51 -0800 (PST) MIME-Version: 1.0 Received: by 10.12.198.17 with HTTP; Wed, 21 Feb 2018 02:52:50 -0800 (PST) In-Reply-To: References: <1518806331-7101-1-git-send-email-yamada.masahiro@socionext.com> <20180218221352.GA6651@ravnborg.org> From: Arnd Bergmann Date: Wed, 21 Feb 2018 11:52:50 +0100 X-Google-Sender-Auth: yVgL0QuoTZLXo0GWwUWT9eSBJjU Message-ID: Subject: Re: [PATCH 00/23] kconfig: move compiler capability tests to Kconfig To: Masahiro Yamada Cc: Rich Felker , Kernel Hardening , X86 ML , Paul Mackerras , "H. Peter Anvin" , sparclinux , Sam Ravnborg , Yoshinori Sato , Jonathan Corbet , Richard Weinberger , Linux-sh list , Ingo Molnar , Emese Revfy , Kees Cook , uml-devel , Linux Kbuild mailing list , Peter Oberparleiter , Jeff Dike , linuxppc-dev , user-mode-linux-user@lists.sourceforge.net, Thomas Gleixner , Michal Marek , Ulf Magnusson , Greg Kroah-Hartman , Randy Dunlap , "open list:DOCUMENTATION" , Linux Kernel Mailing List , Linus Torvalds , "David S. Miller" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 21, 2018 at 11:20 AM, Masahiro Yamada wrote: > 2018-02-21 18:56 GMT+09:00 Arnd Bergmann : >> On Wed, Feb 21, 2018 at 8:38 AM, Masahiro Yamada >> wrote: >>> 2018-02-20 0:18 GMT+09:00 Ulf Magnusson : > > Let me clarify my concern. > > When we test the compiler flag, is there a case > where a particular flag depends on -m{32,64} ? > > For example, is there a compiler that supports -fstack-protector > for 64bit mode, but unsupports it for 32bit mode? > > $(cc-option -m32) -> y > $(cc-option -m64) -> y > $(cc-option -fstack-protector) -> y > $(cc-option -m32 -fstack-protector) -> n > $(cc-option -m64 -fstack-protector) -> y > > I guess this is unlikely to happen, > but I am not whether it is zero possibility. > > If this could happen, > $(cc-option ) must be evaluated together with > correct bi-arch option (either -m32 or -m64). > > > Currently, -m32/-m64 is specified in Makefile, > but we are moving compiler tests to Kconfig > and, CONFIG_64BIT can be dynamically toggled in Kconfig. I don't think it can happen for this particular combination (stack protector and word size), but I'm sure we'll eventually run into options that need to be tested in combination. For the current CFLAGS_KERNEL setting, we definitely have the case of needing the variables to be evaluated in a specific order. Arnd