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

Vlad Serebrennikov via cfe-commits cfe-commits at lists.llvm.org
Mon Jul 15 16:04:25 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'
----------------
Endilll wrote:

Added `CHECK-NOT` test.

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


More information about the cfe-commits mailing list