Re: RFR: JDK-8300531: MSVC CFlags look suspicious [v9]

2023-02-17 Thread Magnus Ihse Bursie
On Thu, 16 Feb 2023 06:33:08 GMT, Ioi Lam wrote: > As a general comment, the bug title should be to the point. "Look suspicious" > contains no information. It looks like you are changing the optimization > level, so the bug title should reflect that. I agree. But let me expand the point a bit:

Re: RFR: JDK-8300531: MSVC CFlags look suspicious [v9]

2023-02-15 Thread Ioi Lam
On Wed, 15 Feb 2023 21:21:47 GMT, Justin King 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 revis

Re: RFR: JDK-8300531: MSVC CFlags look suspicious [v9]

2023-02-15 Thread Justin King
On Wed, 15 Feb 2023 21:21:47 GMT, Justin King 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 revis

Re: RFR: JDK-8300531: MSVC CFlags look suspicious [v9]

2023-02-15 Thread David Holmes
On Wed, 15 Feb 2023 21:21:47 GMT, Justin King 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 revis

Re: RFR: JDK-8300531: MSVC CFlags look suspicious [v8]

2023-02-15 Thread Justin King
On Thu, 16 Feb 2023 02:03:35 GMT, David Holmes wrote: > > Looks like serviceability might rely on RTTI on Windows. > > Can you point to the code please? We should not be using RTTI. Removing /GR- makes the tests pass. I think somewhere we are indirectly relying on RTTI for Windows. Maybe relat

Re: RFR: JDK-8300531: MSVC CFlags look suspicious [v8]

2023-02-15 Thread David Holmes
On Wed, 15 Feb 2023 21:17:45 GMT, Justin King wrote: > Looks like serviceability might rely on RTTI on Windows. Can you point to the code please? We should not be using RTTI. - PR: https://git.openjdk.org/jdk/pull/12073

Re: RFR: JDK-8300531: MSVC CFlags look suspicious [v8]

2023-02-15 Thread Justin King
On Tue, 14 Feb 2023 18:42:07 GMT, Justin King 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 revis

Re: RFR: JDK-8300531: MSVC CFlags look suspicious [v9]

2023-02-15 Thread Justin King
> 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: Revert usage of /GR- Signed-off-by: Justin King

Re: RFR: JDK-8300531: MSVC CFlags look suspicious [v8]

2023-02-14 Thread Justin King
On Tue, 14 Feb 2023 18:42:07 GMT, Justin King 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 revis

Re: RFR: JDK-8300531: MSVC CFlags look suspicious [v8]

2023-02-14 Thread Justin King
> 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: Reposition -Oy- Signed-off-by: Justin King

Re: RFR: JDK-8300531: MSVC CFlags look suspicious [v7]

2023-02-14 Thread Justin King
> 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: Reposition -Oy- Signed-off-by: Justin King

Re: RFR: JDK-8300531: MSVC CFlags look suspicious [v6]

2023-02-14 Thread Justin King
> 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 -Oy- Signed-off-by: Justin King ---

Re: RFR: JDK-8300531: MSVC CFlags look suspicious [v4]

2023-02-14 Thread Justin King
On Tue, 14 Feb 2023 17:21:51 GMT, Justin King 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 with a new target base due to a > merge or a rebase. The pull r

Re: RFR: JDK-8300531: MSVC CFlags look suspicious [v5]

2023-02-14 Thread Justin King
> 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: Remove -Ob3 Signed-off-by: Justin King

Re: RFR: JDK-8300531: MSVC CFlags look suspicious [v4]

2023-02-14 Thread Justin King
> 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 with a new target base due to a merge or a rebase. The pull request now contains one commit: Update MSVC CFlags Sig

Re: RFR: JDK-8300531: MSVC CFlags look suspicious [v3]

2023-01-25 Thread Justin King
> 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 with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the

Re: RFR: JDK-8300531: MSVC CFlags look suspicious [v2]

2023-01-19 Thread Justin King
On Thu, 19 Jan 2023 19:23:30 GMT, Erik Joelsson wrote: > Changing the global optimization flags is a pretty big and potentially > intrusive change. It's quite possible that the current flags need a > re-evaluation, since they were chosen a long time ago, for a much older > version of Visual St

Re: RFR: JDK-8300531: MSVC CFlags look suspicious [v2]

2023-01-19 Thread Erik Joelsson
On Thu, 19 Jan 2023 19:23:30 GMT, Erik Joelsson wrote: > I don't think making the number after the O in the flags match what we use > for other compilers is motivation enough to warrant a change like this. > Different compilers are sure to have their optimization levels mean different > things

Re: RFR: JDK-8300531: MSVC CFlags look suspicious [v2]

2023-01-19 Thread Erik Joelsson
On Thu, 19 Jan 2023 17:27:57 GMT, Justin King 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 with a new target base due to a > merge or a rebase. The increm

Re: RFR: JDK-8300531: MSVC CFlags look suspicious [v2]

2023-01-19 Thread Justin King
> 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 with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the

Re: RFR: JDK-8300531: MSVC CFlags look suspicious

2023-01-18 Thread Justin King
On Wed, 18 Jan 2023 14:32:20 GMT, Justin King wrote: > Update MSVC CFlags to be more consistent with other compilers. Also disables > RTTI in a simliar manner to GCC/Clang for the JVM. Not sure why `-Oy-` was used. GCC/Clang omit frame pointers by default these days, IIRC. So forcing MSVC to p

RFR: JDK-8300531: MSVC CFlags look suspicious

2023-01-18 Thread Justin King
Update MSVC CFlags to be more consistent with other compilers. Also disables RTTI in a simliar manner to GCC/Clang for the JVM. - Commit messages: - Update MSVC CFlags Changes: https://git.openjdk.org/jdk/pull/12073/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=12073&rang