[clang] [clang] Add deprecation warning for `-Ofast` driver option (PR #98736)
Vlad Serebrennikov via cfe-commits
cfe-commits at lists.llvm.org
Tue Jul 16 05:16:39 PDT 2024
================
@@ -10,31 +10,36 @@
// 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: argument '-Ofast' is deprecated; use '-O3 -ffast-math' instead, or just '-O3' if you do not intend to enable non-conforming optimizations
// CHECK-OFAST: -cc1
// CHECK-OFAST-NOT: -relaxed-aliasing
// CHECK-OFAST: -ffast-math
// CHECK-OFAST: -Ofast
// CHECK-OFAST: -vectorize-loops
+// CHECK-OFAST-O2-NOT: argument '-Ofast' is deprecated; use '-O3 -ffast-math' instead, or just '-O3' if you do not intend to enable non-conforming optimizations
----------------
Endilll wrote:
Fixed.
https://github.com/llvm/llvm-project/pull/98736
More information about the cfe-commits
mailing list