Received: by 10.223.185.116 with SMTP id b49csp1036003wrg; Wed, 21 Feb 2018 10:58:37 -0800 (PST) X-Google-Smtp-Source: AH8x224hfWh7QGQ9VxXWpuTv1qu1Slo2VsYr2uV7PJLHdyHVQyJZWd9xL46MqIDcpkDguCsAlbDq X-Received: by 2002:a17:902:b090:: with SMTP id p16-v6mr4093312plr.324.1519239517154; Wed, 21 Feb 2018 10:58:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519239517; cv=none; d=google.com; s=arc-20160816; b=X1PluWJVsbcF5hwFA+yaC6CPGEL94P1tOarpc2xT2RzJ46z4zRYF+CxXkAN5WIslsc jlrdMRYVb0ByNDILKHwG5igCziS4STSdguF9sa3KtvN2kiel1qK8MR3+TqCEFMjk146f ZL4c/Yp1RTig9+4IFsoJb4HiM6+5nbsVVhsugaQuXl+N1HxeIjLQKsH336DzcVLQ+ASy xCgrr/V2NVw3BgZxN5pPFbVFgGGPWmHTdVFB6TXJ+6bpxd9P0Jt5ncAjLKP290jCBb8h o6tUEUZWmRpWQ86Y4scwASqYsTjccwtPe9djaaGiRZRdpoiLLwduqW7LIeeLqOMdF0Iw 8/QQ== 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=R+M9dDvFHBmW6sK0W/a45XHD/0qAZawn0vb2Z4wDHoY=; b=ZCdiLsutPWeDjOfbBBVq4BFd+10XZgbRPlts/+Vdk2OimXORJe3E5sDtsxSvcXbNNi dgBFdZE3LdKGqT8aTEb7mtvSQrZqDbjy90IdQKvKuhaOBDCo/UDYvjv5MsahekxKI6MM ndjiYCrZcwW1dMz5cXdHHnfh49dYJ77yhWaq5dvebJ8JwFQnKes3ISbROK6HNVBX7eHP DYlGFT3P8Z4Io49k+hULVEgrM1iqMnr0d7bBJH0TGsRm1gRPUASMVsdrc370yvv1RX7p Zs9RlCk+DBNXOo5pKbJVtw22fgPRcA+ZG+yr4FDe4EBzjayxJ8SyCAPIWUMnoCi48GZt aDRA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=holoYr4t; 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 b4-v6si146260plb.648.2018.02.21.10.58.23; Wed, 21 Feb 2018 10:58:37 -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=holoYr4t; 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 S966219AbeBUQDc (ORCPT + 99 others); Wed, 21 Feb 2018 11:03:32 -0500 Received: from mail-qk0-f195.google.com ([209.85.220.195]:43628 "EHLO mail-qk0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754762AbeBUQD1 (ORCPT ); Wed, 21 Feb 2018 11:03:27 -0500 Received: by mail-qk0-f195.google.com with SMTP id i184so2553122qkf.10; Wed, 21 Feb 2018 08:03:26 -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=R+M9dDvFHBmW6sK0W/a45XHD/0qAZawn0vb2Z4wDHoY=; b=holoYr4tPKQkQHfS7sRPcghkVwEyvT/1miNCzgTlCWOjlNQRAS4zPVh62R3CtT7HdY 3Q7ZkjbUYMXzwsV5E2AaZo3qqDFa1ytOnTUrg0GqDFfdgmdYHbCQNlliUA8As4t0EBN3 RsLgCzjw1EzZC2OHCzNYv+Ghoq8/rq26WbpoYuFoF3oeXAHxp+CrZJUOTVoVhtHmZ9AU Jfe2aLMtZdDBMxLENMNJhOnm6NbiFMu1E32GO3xs+q41AFhk37t7FQgJt5KaGWTezmub 7ZrHACg4mlcfXy3Muw8HATMrzdEh47GC1OpZpHLEJVMFxfKzuD67EN/zmHLZ1QBwXp68 Dg9A== 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=R+M9dDvFHBmW6sK0W/a45XHD/0qAZawn0vb2Z4wDHoY=; b=RzBDknlzOtt4izuYv+nVZZCtJcG4aeFLI992xMoBFrd4/GFZjlH62B+dV+2SEOf94x nW+J1hgz7BRSyZwWIlTSOzICz6G/38o2hmgSEA9JuZ0B+dSJUqkVh3nYV9vH2kLq1Njl 7mcaXwpWxZkXJ5DlZGdC/DN5E/cSbE0mkzJdQ8CYpbvWfI9yY347JlVAk4NRkN1qt1ay cASgIJt8etqQbEBoL6go1T4NScxXPAnrBJKdmWX32dxL747Fwow4Rq3B5WPSF8Nf4CIK SChu+i6VRxqrlDg0z4IAUQYswh9jn2OVmnHX6ndanUbElzU7l0cwLIcr3mmpuh1Kjfd7 Q1cQ== X-Gm-Message-State: APf1xPD9L2FylzjjyC7uW8m63UoP56GtPkDoPWYGOH6q5hd3rRB7nV3p dVXv0Jc2TP/xpS3S776nDE01eteQ00fLzXyS4DI= X-Received: by 10.55.113.69 with SMTP id m66mr1585500qkc.84.1519229005765; Wed, 21 Feb 2018 08:03:25 -0800 (PST) MIME-Version: 1.0 Received: by 10.12.198.17 with HTTP; Wed, 21 Feb 2018 08:03:25 -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 17:03:25 +0100 X-Google-Sender-Auth: jDM0EIwjd-fBzCHaTGUJDFFIbO4 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 1:57 PM, Masahiro Yamada wrote: > 2018-02-21 19:52 GMT+09:00 Arnd Bergmann : >> 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 : > > Hmm, I think I can implement those somehow. > But, I hope we do not have many instances like this... > > > If you know more naive cases, please share your knowledge. > One case that comes to mind would be architecture level selection on 32-bit ARM, which is roughly this (I probably have some details wrong, but you get the idea): - older compilers don't support the latest architecture setting (-march=armv8 or -march=armv7ve) - newer compilers no longer support really old architectures (-march=armv4) - setting -mthumb requires setting one of -march=armv7-a, armv7ve, armv7-m or armv8 if the compiler doesn't default to those - on a compiler that defaults to -marm, setting -march=armv7-m requires setting -mthumb (IIRC) - really old compilers only support OABI, but not EABI - newer compilers no longer support OABI - mthumb requires EABI - armv6 and higher are subtly broken with OABI, but only when using certain inline assembly with 64-bit arguments in register pairs. I think we just shouldn't try to capture all of the above correctly in Kconfig conditionals. Arnd