Message ID | 20210712215535.1471256-12-richard.henderson@linaro.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a02:c94a:0:0:0:0:0 with SMTP id u10csp3351220jao; Mon, 12 Jul 2021 15:07:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxB4EDVL1MfE6D8B5C/i3cHDtpGyRK+R3gcKOnT9cYLzPJpu49TEfNvIu+6eHWMW+DlgBv/ X-Received: by 2002:a1f:3a55:: with SMTP id h82mr1307243vka.16.1626127637158; Mon, 12 Jul 2021 15:07:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626127637; cv=none; d=google.com; s=arc-20160816; b=wp08XN4683YFJSocIgBPWM697YS8Gom6UJw+ZrhnnZ/wwgh5b3zz45ivrl8r61FxpF Pm5cuxvdftk2t7E2HTdIpHXXZExjmWUqVpmlz4C08YWbQVfiGp5oiEVBuxkRE2l2BljY 0CTDqSeT7nUEHLhHuZDclv/xyxjZE+zMhxM0YUpc1aQyWB1A84DolX/bfzVgK/UpUHmQ oKXh5Cp/Q2MV+dU6beJFwi+j8H/cpkFjgezmANeZzEf57YW6+4SiRMjuteWF8W5btNJR G9dVXQrTakB6K4dZ4ytM9nvcksLq9HTUvQuyIpJsG5Xhx8q/cBGU3pKvnQDR60fat3ZU aDDw== 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=0lgwAN4JLa+eJyUWPeSpGCyCJ0/V+S2YWU/Kqpi1gBQ=; b=qAoM++Ct67nkm1DSLptTrhEKhQE3cNCErbsR4RnewLzvMLYEt9gv9j2Jc5MsZln6J1 tj7OHhmrQKbtkeBv0JoiBML1z5jpncdkSFG7kKHZxRxKj4froDqGvrS/RRnQ9HipjI5Z 8ciJ6g9NPvHr7VVynjXlDE56Mfq6lY6cjj2n2tsidQfT+gd00xYBdYucriy3gpXjhcmJ 5/FBpEb8QsOOGnI+LtrvPSy/FOSfN0ZE4xjvCsL0pFUyEEITqPslJ2icxB396UIUjOpg 0PqRr6MKf4oGxhOIEUsQoeAmxdnUDU0bbbqNaPxluT2JykxhfzQF5P0TsPDYvJe8mHGq v4Yg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jSeeyBOO; 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: <qemu-devel-bounces+patch=linaro.org@nongnu.org> Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id ba29si3635422vkb.55.2021.07.12.15.07.17 for <patch@linaro.org> (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 12 Jul 2021 15:07: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=jSeeyBOO; 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]:54062 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <qemu-devel-bounces+patch=linaro.org@nongnu.org>) id 1m3456-0000kP-Ix for patch@linaro.org; Mon, 12 Jul 2021 18:07:16 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50790) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <richard.henderson@linaro.org>) id 1m33u0-0000pt-Uy for qemu-devel@nongnu.org; Mon, 12 Jul 2021 17:55:49 -0400 Received: from mail-pg1-x52b.google.com ([2607:f8b0:4864:20::52b]:39908) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <richard.henderson@linaro.org>) id 1m33tx-0006vO-E7 for qemu-devel@nongnu.org; Mon, 12 Jul 2021 17:55:48 -0400 Received: by mail-pg1-x52b.google.com with SMTP id a2so19733511pgi.6 for <qemu-devel@nongnu.org>; Mon, 12 Jul 2021 14:55: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=0lgwAN4JLa+eJyUWPeSpGCyCJ0/V+S2YWU/Kqpi1gBQ=; b=jSeeyBOO6E1wn6rLvdqyssZgCsyTAk6ZQMxdqWqJmQteU98MAxr5t9kgWkDGqPuza/ 9llyvUrs/Zp2s3pBP++0Sc5qqt77w3qo5Gfk7AAYD/MY2ma39xeHjLbBP7E7vf+69g31 nFYgY3Xpxh/eOWIGezyiKcQ8NxDr/me7cssZxyYSFI92VPF6XxNdoW4LPVepxi0JJcWa +c7ffaYBvJm0InMl2Qo5PAnuyBUXv+6I8A6VolEiwXH28MZW30GW4zeSdOVPWCaGUNjd UMUNs0iPGPy7MKSwYDiQnYkiBCjyGqsI+XtjWqGwI6WX6P6IYIKkXKCjsIAdIwRqeCzx 6qqQ== 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=0lgwAN4JLa+eJyUWPeSpGCyCJ0/V+S2YWU/Kqpi1gBQ=; b=rZ113owFtb4pUjv+tpj5QeKMUO0maiGVzD5sws52e1QLMrWyMF698VzWRckyXDJWEt fcTeeZoZdUipjy+sjfRaHDlBlWg9jVgUhyjFx0FXXvvl+XfH3WQVjJDRYBqX69Ae9DKI LsMp+2ce5SqMRmFQGXtXG/A7zHe0OXaDLMi0J5Bssi3Vo7UYjdTVKZ/ksFK2CswBvXtw dWpX0DfZ3ZfTcisOCxY26xzei10ZU4aQa9dWuE6Ujf7E0FbTUXJ99H5VPH57E9A33YMY vtF6E0SY5GGgPdYe4TrcgOvn98z0i6VIq1s+osaVilcrdTeVfzpYmUXeX5tL/VwX9cYg V7jw== X-Gm-Message-State: AOAM532J+5Q0yH5TB9Ima5hBgWT8ctlwwER4gDMFK7vWc0ZV0yMrOzLd SsjfqNCS0ljEWDgIpUb7MNlaUhRpEwOVpA== X-Received: by 2002:a05:6a00:1805:b029:328:4602:4dbb with SMTP id y5-20020a056a001805b029032846024dbbmr1074161pfa.45.1626126944025; Mon, 12 Jul 2021 14:55:44 -0700 (PDT) Received: from localhost.localdomain ([71.212.149.176]) by smtp.gmail.com with ESMTPSA id d2sm376932pjo.50.2021.07.12.14.55.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Jul 2021 14:55:43 -0700 (PDT) From: Richard Henderson <richard.henderson@linaro.org> To: qemu-devel@nongnu.org Subject: [PATCH 11/11] tcg/ppc: Ensure _CALL_SYSV is set for 32-bit ELF Date: Mon, 12 Jul 2021 14:55:35 -0700 Message-Id: <20210712215535.1471256-12-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210712215535.1471256-1-richard.henderson@linaro.org> References: <20210712215535.1471256-1-richard.henderson@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::52b; envelope-from=richard.henderson@linaro.org; helo=mail-pg1-x52b.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, 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: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <https://lists.nongnu.org/archive/html/qemu-devel> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Cc: Brad Smith <brad@comstyle.com> Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" <qemu-devel-bounces+patch=linaro.org@nongnu.org> |
Series |
Fixes for clang-13 plus tcg/ppc
|
expand
|
diff --git a/tcg/ppc/tcg-target.c.inc b/tcg/ppc/tcg-target.c.inc index 2202ce017e..5e1fac914a 100644 --- a/tcg/ppc/tcg-target.c.inc +++ b/tcg/ppc/tcg-target.c.inc @@ -25,9 +25,24 @@ #include "elf.h" #include "../tcg-pool.c.inc" -#if !defined _CALL_DARWIN && defined __APPLE__ -#define _CALL_DARWIN 1 -#endif +/* + * Standardize on the _CALL_FOO symbols used by GCC: + * Apple XCode does not define _CALL_DARWIN. + * Clang defines _CALL_ELF (64-bit) but not _CALL_SYSV (32-bit). + */ +#if !defined(_CALL_SYSV) && \ + !defined(_CALL_DARWIN) && \ + !defined(_CALL_AIX) && \ + !defined(_CALL_ELF) +# if defined(__APPLE__) +# define _CALL_DARWIN +# elif defined(__ELF__) && TCG_TARGET_REG_BITS == 32 +# define _CALL_SYSV +# else +# error "Unknown ABI" +# endif +#endif + #ifdef _CALL_SYSV # define TCG_TARGET_CALL_ALIGN_ARGS 1 #endif
Clang only sets _CALL_ELF for ppc64, and nothing at all to specify the ABI for ppc32. Make a good guess based on other symbols. Reported-by: Brad Smith <brad@comstyle.com> Signed-off-by: Richard Henderson <richard.henderson@linaro.org> --- tcg/ppc/tcg-target.c.inc | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) -- 2.25.1