RFR: JDK-8300531: Update MSVC optimization flags to match GCC/Clang [v10]
Justin King
jcking at openjdk.org
Sat Feb 18 18:26:25 UTC 2023
On Sat, 18 Feb 2023 18:21:44 GMT, Justin King <jcking at openjdk.org> wrote:
>> Update MSVC CFlags to be more consistent with other compilers. Also disables RTTI in a simliar manner to GCC/Clang for the JVM.
>
> Justin King has updated the pull request incrementally with one additional commit since the last revision:
>
> Add comments clarifying -Oy-
>
> Signed-off-by: Justin King <jcking at google.com>
This change ensures MSVC is similar to GCC/Clang in terms of optimization flags, at least in spirit. It also applies the equivalent of `-fno-omit-frame-pointer` to MSVC (`-Oy-`). Binary size is not significantly affected. The main difference is MSVC will prefer speed over size when generating code, and will try to prefer intrinsic versions of builtins rather than emitting function calls.
-------------
PR: https://git.openjdk.org/jdk/pull/12073
More information about the build-dev
mailing list