From patchwork Mon Oct 28 14:59:30 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 177937 Delivered-To: patch@linaro.org Received: by 2002:a92:409a:0:0:0:0:0 with SMTP id d26csp3514852ill; Mon, 28 Oct 2019 08:08:17 -0700 (PDT) X-Google-Smtp-Source: APXvYqxplU3xQX6DDoYhSvNSdW0Ls1hBreBWMZbWgSHiX5WUcNXvKEO9LBJkFCJjRJmqCAvdT9qC X-Received: by 2002:aed:3be9:: with SMTP id s38mr17500577qte.175.1572275297698; Mon, 28 Oct 2019 08:08:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572275297; cv=none; d=google.com; s=arc-20160816; b=gXCCSzG4IYCR9AuBfrFEC2Kt5nApmH0aJfluUOpnF21he+Egw+qOCAfDzYB4nFEyoU OTbSaMjU/bFuZtNrtMi3/1mQiDRbAf2wjAAuH6BnIoB5l5Xaz88XO3OHyFMIKhBXG4Jb MMwXEhTEOX9QDKUbJvmH9ErAM7ymVSy/lsXwHDjpQuNvlA6C6d/E3uRJGk5QZPAS+b99 ALdddmNIoaoleZgl+J6iU+X8m8hhhwTmYbo3u0ZOezbpXIjjxQVUrhDnbhm/QuSZbc6G 79wgJ2TYHWWa63S0zRKMHgOuSrQ7T5/vm7GO7vOm1FTAw89jptCK0IlMAZNeXGsAMtmn zj2A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=ZwXbM1gR9MpWZvFXDuXSv541qXotelrmjZ6gTXEMEYw=; b=SB16YPSLodrSMfNGzTKzi/CLLQOThwkyrdeyaegBKNJBqj8QYqg16znPJcsF2aaZun VTD3sWORjb/oZbnHMSpWpBKCjBajO1OmrSxhUS1XZjdDRUh4PTzX/HAr69Vd4RIVVpMA sOWKaiBPPzjnHcg/vg0NhhlglUXBs6TG6/JGAs7IHHmXUjENEspKTo+C6+/W/PcSAaTd IQa7j+Snf5zdjCxtyHDrskCyi7zY37k7W0M8hvuBb2Vf9cJGFngLVpKcCVBDwEduRUgK cj33buyMzvENfKNwOjvoWPTsxN5CW8vJKSDeFUU+kwmIVinqTQRYrkefAvy3bXwWcjjA Op6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="M/awpGGd"; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id n127si303613qke.77.2019.10.28.08.08.17 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 28 Oct 2019 08:08:17 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="M/awpGGd"; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:44672 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iP6cy-0000dI-D2 for patch@linaro.org; Mon, 28 Oct 2019 11:08:16 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44575) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iP6Ul-0007US-8T for qemu-devel@nongnu.org; Mon, 28 Oct 2019 10:59:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iP6Uj-00043c-0C for qemu-devel@nongnu.org; Mon, 28 Oct 2019 10:59:47 -0400 Received: from mail-wm1-x32d.google.com ([2a00:1450:4864:20::32d]:53090) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iP6Ui-00043F-Qb for qemu-devel@nongnu.org; Mon, 28 Oct 2019 10:59:44 -0400 Received: by mail-wm1-x32d.google.com with SMTP id p21so9827566wmg.2 for ; Mon, 28 Oct 2019 07:59:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=ZwXbM1gR9MpWZvFXDuXSv541qXotelrmjZ6gTXEMEYw=; b=M/awpGGduVemAbeSnE1cJx3aXKqoV8otSp3/r6Ow1ZkB3ifOVJniiBA0nadUAfuGhe ioblWR8qO4aod8k3RjiZL/ja8rZIo2XPU68nSWa8MZRvFk+uAiXvca/xv/m2J4IwgK4a oI+CLrkiCB/tE6XvPDaUyeWGq+bhpSvMXjQ1SU8nC2y3FhuUJx5ToUyDg82aBwyco9ZA wrqwUMwIv423fJIRvNx5wBb+raJkMdznZgdCXvOGyW4vkglun50fHgpuh4SI7fTDQ9wg WcrOPUqmtouFqMIdtS+noi98ROdaZK5MI5EZDkUGlC1YL0po4cuUyV7x/2cHp4jVfjMO Pnzw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=ZwXbM1gR9MpWZvFXDuXSv541qXotelrmjZ6gTXEMEYw=; b=fICgyl4jw7u3CXKlIWBuGOVr3Z8Y462zuKozqNDpUV3kwL65vtc001ucue6+jilQeR QywgfJ5iiXnQ+Tc3FuU4Vu7RLvzH/2yIzkFFiM0OhX1xQcv7aMnXMDrSuXlKUvIUbBxA oKOulBT7xese+Z93Bb5HFBl0XaRTJmpiO4aWI28MJqjT1nQDCUL6QRzwfK01oVjv9HOD OQnXzUIncM8qUSMAblcmGhGa/QbFmSSOW5PM323XXPYLvQPHN03Molfl9QzuNGDppSTg qFYtyR1qbeHHCEPPEgBBiiv1VZ0pkqdJYRNBRwkRTJwPeWjsslk/FGnm9eWp9LrrPHFw QVsw== X-Gm-Message-State: APjAAAXn9oRzvlgsXF23sN03D+ghwebqIQgZmn5QPf1wG9es4Md6/Ee/ kDWggMhE1pSs+bYdfJVy2K0S12wO4S+6bw== X-Received: by 2002:a7b:cd99:: with SMTP id y25mr421128wmj.76.1572274783524; Mon, 28 Oct 2019 07:59:43 -0700 (PDT) Received: from localhost.localdomain (230.106.138.88.rev.sfr.net. [88.138.106.230]) by smtp.gmail.com with ESMTPSA id 143sm14842876wmb.33.2019.10.28.07.59.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Oct 2019 07:59:42 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PULL v2 05/12] configure: Detect compiler support for __attribute__((alias)) Date: Mon, 28 Oct 2019 15:59:30 +0100 Message-Id: <20191028145937.10914-6-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191028145937.10914-1-richard.henderson@linaro.org> References: <20191028145937.10914-1-richard.henderson@linaro.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::32d 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: peter.maydell@linaro.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Such support is present almost everywhere, except for Xcode 9. It is added in Xcode 10, but travis uses xcode9 by default, so we should support it for a while yet. Reviewed-by: Alex Bennée Signed-off-by: Richard Henderson --- configure | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) -- 2.17.1 diff --git a/configure b/configure index 145fcabbb3..3a9862fe5e 100755 --- a/configure +++ b/configure @@ -5518,6 +5518,21 @@ if compile_prog "" "" ; then vector16=yes fi +######################################## +# See if __attribute__((alias)) is supported. +# This false for Xcode 9, but has been remedied for Xcode 10. +# Unfortunately, travis uses Xcode 9 by default. + +attralias=no +cat > $TMPC << EOF +int x = 1; +extern const int y __attribute__((alias("x"))); +int main(void) { return 0; } +EOF +if compile_prog "" "" ; then + attralias=yes +fi + ######################################## # check if getauxval is available. @@ -7083,6 +7098,10 @@ if test "$vector16" = "yes" ; then echo "CONFIG_VECTOR16=y" >> $config_host_mak fi +if test "$attralias" = "yes" ; then + echo "CONFIG_ATTRIBUTE_ALIAS=y" >> $config_host_mak +fi + if test "$getauxval" = "yes" ; then echo "CONFIG_GETAUXVAL=y" >> $config_host_mak fi