[9] RFR(L): 8037816 : Fix for 8036122 breaks build with Xcode5/clang
David Chase
david.r.chase at oracle.com
Fri Apr 18 04:03:09 UTC 2014
On 2014-04-17, at 8:01 PM, Christian Thalinger <christian.thalinger at oracle.com> wrote:
>
> On Apr 17, 2014, at 1:31 PM, David Chase <david.r.chase at oracle.com> wrote:
>
>>
>> On 2014-04-17, at 6:26 PM, Christian Thalinger <christian.thalinger at oracle.com> wrote:
>>>
>>> + #if defined(__clang_major__) || (__GNUC__ >= 4) && (__GNUC_MINOR__ >= 6)
>>> Do all versions of Clang support push and pop?
>>
>> I don't know -- what versions of clang are we likely to use?
>
> The most likely ones are 4.2, 5.0, and 5.1 but there is also a comment in the makefiles mentioning 3.1:
>
> # Before Clang 3.1, we had to pass the stack alignment specification directly to llvm with the help of '-mllvm'
MacPorts for the win:
port search clang
clang-2.9 @2.9_13 (lang)
C, C++, Objective C and Objective C++ compiler
clang-3.0 @3.0_12 (lang)
C, C++, Objective C and Objective C++ compiler
clang-3.1 @3.1_7 (lang)
C, C++, Objective C and Objective C++ compiler
clang-3.2 @3.2_2 (lang)
C, C++, Objective C and Objective C++ compiler
clang-3.3 @3.3_2 (lang)
C, C++, Objective C and Objective C++ compiler
clang-3.4 @3.4 (lang)
C, C++, Objective C and Objective C++ compiler
clang-3.5 @3.5-r205259 (lang)
C, C++, Objective C and Objective C++ compiler
There's mention in the online documentation of support for those pragmas with clang-3.5.
Do you know what to say to splice clang into the build on Mountain Lion?
Lacking guidance and/or luck, I plan to just write little test programs to see if the
pragmas behave in the proper way.
David
More information about the hotspot-dev
mailing list