Without the five soon to be attached patches, Clang 10 throws a lot of error messages.
Created attachment 212572 [details]
Patch for src/hotspot/share/runtime/arguments.cpp
Patch 1 of 5. Turned pointer comparison into regular C-style string comparison.
Created attachment 212573 [details]
Patch for src/hotspot/share/c1/c1_LIR.cpp
Patch 2 of 5. Weird indentation makes Clang 10 highly suspicious. Solved by adding curly braces.
Created attachment 212574 [details]
Patch for src/hotspot/share/runtime/sharedRuntime.cpp
Patch 3 of 5. Clang 10 wants the extra parenthesis.
Created attachment 212575 [details]
Patch for src/hotspot/share/gc/shenandoah/c1/shenandoahBarrierSetC1.hpp
Patch 4 of 5. Weird indentation makes Clang 10 highly suspicious. Solved by adding curly braces.
Created attachment 212576 [details]
Patch for src/java.base/share/native/libfdlibm/e_asin.c
Patch 5 of 5. Added curly braces to the else branch.
@Trond Can you produce a single patch against the port, fixing the errors you've identified using `make makepatch`  please:
Created attachment 212819 [details]
Patch for Clang 10
I think the patch for e_asin.c is incorrect
Compare your patch with
Nope my bad. They will do the same thing as the FreeBSD version due to the return in the if statement.
A commit references this bug:
Date: Sat Apr 18 20:42:12 UTC 2020
New revision: 532044
Update to 12.0.2+10.4
Submitted by: Trond.Endrestol@ximalas.info
Pulled upstream, released and integrated.