|
From: | Richard Henderson |
Subject: | Re: [PATCH] tcg/ppc: Fix building with Clang |
Date: | Thu, 22 Apr 2021 08:39:44 -0700 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1 |
On 4/22/21 2:20 AM, Peter Maydell wrote:
On Thu, 22 Apr 2021 at 06:18, Richard HendersonI'm thinking something like #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 #endifDoesn't this also need some case that handles "64bit ppc clang which doesn't define _CALL_anything" ?
Clang does define _CALL_ELF for ppc64: // ABI options. if (ABI == "elfv1") Builder.defineMacro("_CALL_ELF", "1"); if (ABI == "elfv2") Builder.defineMacro("_CALL_ELF", "2"); r~
[Prev in Thread] | Current Thread | [Next in Thread] |