Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp482772pxa; Fri, 21 Aug 2020 12:16:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyBZC5luUQgrdy9f3IPC8H5FTGoeZORhliO9mb3zCAORpYAZkvqc0tixDj5Ut93Y4JcF6fT X-Received: by 2002:a50:cd16:: with SMTP id z22mr4184423edi.155.1598037396016; Fri, 21 Aug 2020 12:16:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598037396; cv=none; d=google.com; s=arc-20160816; b=1BAq99MRqbITLduDznxC3/Xe3xDCnv7qZ8PgYVg69Xv4kOb0N13eQuUQGacGGl/5cG 3crc/Lku6CNNC9ktxy8cKQwD4C1EA9OnSENnxlAqOs1yzg1c95DppkPjlTKEPx+SUyt2 r5lQrWMH24bfIXx1OHQyAwK0lIil76GbCXNWP/vSlgi2/1r3uAYNV/q6O+N5W92Z10IK 1rTSPcdds3z3Xb0sCJDpnM2iNQRpietJHb/bkU2aTAxSJjaua33u5U5kVCqK8WWb6Zey ccq9RQMBJfnvRgmT5Mynnlt/giKc6wKMhH5EvLpoUFjxnbXdBBq6sbVaqiDe7Mg3gpqd 601g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:date:from :dkim-signature; bh=0sLKvJx3aFnV8gtyaecG7WJ6uhDEbkAGQLVXZ3qP928=; b=XY/t4/w1ltu5amCk40vu7Ins3u3GBZis+k5BztrEmwtBLFQmn0/IbTW8D03SE69i7e hp2ys1zDl97CNDIq7WqXC2FJYoiyrqUYXlLCjk9ctr+850hFOxZ+p+IA4TR7gHJsenqB jMWug9+LWvC4uM2EOstHyxIoyK7dV+xdRphq9fGjhWA4UpZZILQU01eq6/UH3MJekBHn VX+eThvKuW/Y22mNrfkbPV1z4cMGWMS0mXClmkx5YqZp/SzrmfZbKKgFChuhuFzx0Dxt OiMfsqyGfslU3qOhGWEFQfTg9pK4Ogy1FnUyhkLQMIAz/vxM73B10Gk9DjCkW5Lh3IQ4 Aykw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=Xah160YC; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y20si1821912ejj.325.2020.08.21.12.16.12; Fri, 21 Aug 2020 12:16:35 -0700 (PDT) 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=fail header.i=@gmail.com header.s=20161025 header.b=Xah160YC; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726633AbgHUTPK (ORCPT + 99 others); Fri, 21 Aug 2020 15:15:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60416 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726243AbgHUTPC (ORCPT ); Fri, 21 Aug 2020 15:15:02 -0400 Received: from mail-qk1-x743.google.com (mail-qk1-x743.google.com [IPv6:2607:f8b0:4864:20::743]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A3A4FC061573; Fri, 21 Aug 2020 12:15:02 -0700 (PDT) Received: by mail-qk1-x743.google.com with SMTP id x69so2342043qkb.1; Fri, 21 Aug 2020 12:15:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:date:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=0sLKvJx3aFnV8gtyaecG7WJ6uhDEbkAGQLVXZ3qP928=; b=Xah160YCM0xzn9UUnKwjd0claCM16C/euOHhTTE9ub37R9WxWzmf/MF1E4NIHpdfdQ koPkrqtlc4zIsZwVMU5ndHSLC6pPRXvHIYdmMPriU4OUVg/x0Pqx/mw9q1w2h+Q4o8/K kChmgNYiy9C4UScQOFMZn2aTcKJUObYHdXIIEfCFkgKoS+qL14kmcnbXkWldyzpn+L4t vFnIkshF7iA/UYigdg0+v9a11nVsTYGPBfRB67k6GGLvvXRhHmIQ8C4u4Qivvk6dlu0d rKVJ9aGesIrp7nm1pH35rfXmpnbfp6hdOSJ+n0zizmtUcA7EkdBaOUUpSjJ1dcuR6swG 7rjQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:date:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to; bh=0sLKvJx3aFnV8gtyaecG7WJ6uhDEbkAGQLVXZ3qP928=; b=jGRnWhTgZYzf855ueLsWxjRU909w+jKG9DbbtoUwwaAbzCjrFZMK9IstCvSsAP3/Bq wPXA4m23F5gpZ0DMc8nmxKDIh+RunuAVDogaqZj3kmhRWSHaMGJnhbs4A8OZD6Om2GLO eZtyOVx3GhTcpD4YG5AC0Q5x1yCgIbNxI8L2B9CqBqBCWhmbbpmSKw2m+xxrBXa0IyC7 LEuBNe+MSAe5umJK8N5eVoiH41YSLnEFSzxJhfxUQ8Z+o3jG8vfpxW/Yw1GFyzS7E8GI mCX6175wUR+pM0idefLa0v/sKILnP8pDv2klE+gXz+ezKviOImyAqvcXunCZaSBoVuFw WrSA== X-Gm-Message-State: AOAM530b9V9z79IvnETlgKARp3CzoOlxdHMy8H4PhDNRUgGkW4xyFwTJ sz2EPOvYdkVqxfZJUsNgGSQ= X-Received: by 2002:a37:9e48:: with SMTP id h69mr4206764qke.249.1598037301820; Fri, 21 Aug 2020 12:15:01 -0700 (PDT) Received: from rani.riverdale.lan ([2001:470:1f07:5f3::b55f]) by smtp.gmail.com with ESMTPSA id y46sm2945634qth.78.2020.08.21.12.15.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 21 Aug 2020 12:15:01 -0700 (PDT) From: Arvind Sankar X-Google-Original-From: Arvind Sankar Date: Fri, 21 Aug 2020 15:14:58 -0400 To: Linus Torvalds Cc: Arvind Sankar , Rasmus Villemoes , Nick Desaulniers , =?utf-8?B?RMOhdmlkIEJvbHZhbnNrw70=?= , Eli Friedman , "H. Peter Anvin" , Masahiro Yamada , Andrew Morton , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Michal Marek , Linux Kbuild mailing list , LKML , Kees Cook , Tony Luck , Dmitry Vyukov , Michael Ellerman , Joe Perches , Joel Fernandes , Daniel Axtens , Andy Shevchenko , Alexandru Ardelean , Yury Norov , "maintainer:X86 ARCHITECTURE (32-BIT AND 64-BIT)" , Ard Biesheuvel , "Paul E . McKenney" , Daniel Kiper , Bruce Ashfield , Marco Elver , Vamshi K Sthambamkadi Subject: Re: [PATCH 0/4] -ffreestanding/-fno-builtin-* patches Message-ID: <20200821191458.GA1475504@rani.riverdale.lan> References: <20200818202407.GA3143683@rani.riverdale.lan> <20200818214146.GA3196105@rani.riverdale.lan> <20200820175617.GA604994@rani.riverdale.lan> <20200821172935.GA1411923@rani.riverdale.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Aug 21, 2020 at 11:02:08AM -0700, Linus Torvalds wrote: > On Fri, Aug 21, 2020 at 10:54 AM Linus Torvalds > wrote: > > > > On Fri, Aug 21, 2020 at 10:29 AM Arvind Sankar wrote: > > > > > > This is why I'm saying clang's no-builtin-foo option is useful for > > > embedded: it doesn't prevent the programmer using __builtin_foo(), it > > > prevents the _compiler_ using __builtin_foo() on its own. > > > > And that's fine. But it's apparently not what gcc does. > > Oh, testing it seems to say that that is exactly what gcc does too. I > must have misunderstood some comment in this thread to mean otherwise. > > Linus How are you testing it? https://godbolt.org/z/eahdGn