[libc-commits] [libc] [libc] Use `${libc_opt_high_flag}` instead of `-O3` (PR #123233)

via libc-commits libc-commits at lists.llvm.org
Fri Jan 17 09:43:13 PST 2025


================
@@ -534,7 +534,7 @@ add_entrypoint_object(
     libc.src.__support.macros.optimization
     libc.src.__support.macros.properties.types
   COMPILE_OPTIONS
-    -O3
+    ${libc_opt_high_flag}
----------------
lntue wrote:

-O3 was notorious for aggressive optimizations, especially with gcc.  Nowadays -O2 and -O3 are probably close, but there are still differences, and it's probably safer to make sure different optimizations do not change the floating point computations' outcomes.

https://github.com/llvm/llvm-project/pull/123233


More information about the libc-commits mailing list