On Thu, 14 Aug 2025 14:44:21 GMT, Julian Waters <jwat...@openjdk.org> wrote:

> I did take a brief look at the other Pull Request, but I still don't really 
> understand this fully. Doesn't the gtest framework itself use C++ exceptions 
> (As Thomas mentioned)? After all, this is likely why -fno-exceptions is not 
> used with gcc and clang when compiling gtest. It would be a bit odd if 
> exceptions were disabled for only Windows (More accurately VC) and not any 
> other platform.

But `-fno-exceptions` *is* used for gcc (and probably for clang, though I've 
not checked). Verified by examination
of ".o.cmdline" files for both libgtest and the HotSpot gtests.

-------------

PR Comment: https://git.openjdk.org/jdk/pull/26721#issuecomment-3189591625

Reply via email to