[clang] [clang] Add deprecation warning for `-Ofast` driver option (PR #98736)

Fangrui Song via cfe-commits cfe-commits at lists.llvm.org
Sat Jul 13 14:16:52 PDT 2024


================
@@ -10,6 +10,7 @@
 // RUN: %clang -Ofast -fno-strict-aliasing -### %s 2>&1 | FileCheck -check-prefix=CHECK-OFAST-NO-STRICT-ALIASING %s
 // RUN: %clang -Ofast -fno-vectorize -### %s 2>&1 | FileCheck -check-prefix=CHECK-OFAST-NO-VECTORIZE %s
 
+// CHECK-OFAST: warning: argument '-Ofast' is deprecated; use '-O3', possibly with '-ffast-math'
----------------
MaskRay wrote:

Do we have a test that for `-Ofast -O3` ?

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


More information about the cfe-commits mailing list