From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.1 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A, SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2FEDFC433C1 for ; Sun, 21 Mar 2021 17:38:18 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id A040661927 for ; Sun, 21 Mar 2021 17:38:17 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A040661927 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:34552 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lO21o-0002BW-NE for qemu-devel@archiver.kernel.org; Sun, 21 Mar 2021 13:38:16 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38704) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lO1yE-0000rS-Iv for qemu-devel@nongnu.org; Sun, 21 Mar 2021 13:34:34 -0400 Received: from mail-qv1-xf32.google.com ([2607:f8b0:4864:20::f32]:45599) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lO1yC-00053P-6i for qemu-devel@nongnu.org; Sun, 21 Mar 2021 13:34:34 -0400 Received: by mail-qv1-xf32.google.com with SMTP id t16so7579349qvr.12 for ; Sun, 21 Mar 2021 10:34:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=VfJL4/Z7HnXfUS9+T5UP4fnBcPNwiD0rqWKK0TaHETM=; b=rltJX/tJPb0CM/19giJbxgLx4l5tyi9L5+RvA6jQEGHZFN2Ix78iWwUeVu4x9ehyjw 3ntqS72TKhXkLJWXOw25gdW8Y0N3biHa4wnCWrpYe2xSuvcLr9cyENogKwB5TzQD/Nna 3fN2dQvhlpfAtU8+I7/cP0+uffBWkhfLbtqYYSHQb/XTa6l7EZjcliANVL/WVvn4aHS9 5PGuV6/lMO7VkDJ8J3NZMQUw/G6EJ+N/MQDZ3tDrGkgivmVqiwsHva8xCUIjwUnOu1Fs ABOJVxwGAg8aKAGRzoI2rxrD3FmRdbC8n0dcKLioj3i3Xq0U8WqSlKYgwXrk3O5SxNDl 4h0A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=VfJL4/Z7HnXfUS9+T5UP4fnBcPNwiD0rqWKK0TaHETM=; b=WyjcV8M+2UQPPtaMNDQB0AJSkZUnuDbU/vKGXd5YSQYBxsHuaWXdwHcNTCjpyh+2Co u6Bxi5y8akGqixOjKYFFT21OAult47v84wUQFd/zxdbxU81IlPDhDDWMsG+nBBqmpaiX rm8jUsb36/VjlM+ZL4MhLUz/kXFgUbz8xqTQgfb35lmgZsRDWs+TQIbUdOreodFOguSn ULdLNsL8Y7pz7vevquxt2L+1OXvMw+/onakPC5cyhY3uzIBEl+ZcBrNCTgoeP7yG8Jpz J2RqU94gpbmHvH3StoL87NedGy/6aXhxJuAtq+0cVID/8tUC5ZnodCHo3zH8FvFHVtQv 4geg== X-Gm-Message-State: AOAM531JnH0hczbN4O6l8ofkN6fs2mqhKmqFkqaGr3AjJ4YrENy8vuDi tLkWlzhwbYaBFRuPETKEwZRRJQ== X-Google-Smtp-Source: ABdhPJy32CSkQGgaaI+4qIOFYaEk89WcXyJMKLMXO2fPbmze8zfy8e2JuBEzDOAfr3t64g4IoP8ICg== X-Received: by 2002:ad4:5ce7:: with SMTP id iv7mr17667892qvb.7.1616348070155; Sun, 21 Mar 2021 10:34:30 -0700 (PDT) Received: from [10.10.121.52] (fixed-187-189-51-144.totalplay.net. [187.189.51.144]) by smtp.gmail.com with ESMTPSA id d84sm9005696qke.53.2021.03.21.10.34.28 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 21 Mar 2021 10:34:29 -0700 (PDT) Subject: Re: [PATCH] configure: Improve alias attribute check To: Paolo Bonzini References: <20210320042753.69297-1-gshan@redhat.com> <5a6e5d96-7b23-7a56-3096-fb80155cac26@redhat.com> <107a73a0-aafe-bfce-7c28-8ed5fe6c022f@linaro.org> <4c8d854e-a8a1-2a44-5a02-96a5ce5598bc@linaro.org> From: Richard Henderson Message-ID: Date: Sun, 21 Mar 2021 11:34:26 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::f32; envelope-from=richard.henderson@linaro.org; helo=mail-qv1-xf32.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, NICE_REPLY_A=-0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Aldy Hernandez , Thomas Huth , Gavin Shan , qemu-devel , Laurent Vivier , qemu-arm , Shan Gavin , Philippe Mathieu Daude Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" On 3/21/21 10:50 AM, Paolo Bonzini wrote: > Another workaround may be to avoid compiling exec-vary.c with -flto.  I'm not > sure that my meson fu is up to that.  Paolo? > > You would have to define a static library. Ok. With an extra -fno-lto flag, or can I somehow remove -flto from the library's cflags? Or unset the meson b_lto variable? > I have filed a gcc bug report: > > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99696 > > > Hopefully someone can address that before gcc 11 gets released.  At which > point we need do nothing in qemu.  Aldy? > > > Good point, I can give it a shot too just to see how rusty I am... That would > be the best outcome, though we would have to check LLVM as well. If const > doesn't work it would indeed be prudent to include Gavin's configure check. So, I've reproduced the testcase failure with gcc 9.3 (ubuntu 20.04) as well. Which means that there are at least two releases for which this has not worked. I think Gavin's runtime test is unnecessary. We don't have to check the runtime results, we can just [ "$lto" = true ], and we fairly well know it'll fail. r~