[clang] Honor pragmas with -ffp-contract=fast, depecate fast-honor-pragmas (PR #105746)

Fangrui Song via cfe-commits cfe-commits at lists.llvm.org
Thu Aug 22 19:26:57 PDT 2024


================
@@ -30,8 +29,10 @@
 // RUN:   | FileCheck --check-prefix=CHECK-FPC-FAST %s
 
 // RUN: %clang -### -ffast-math -ffp-contract=fast-honor-pragmas -c %s 2>&1 \
-// RUN:   | FileCheck --check-prefixes=CHECK-FPC-FAST-HONOR,WARN_FM_FHP %s
-// CHECK-FPC-FAST-HONOR:     "-ffp-contract=fast-honor-pragmas"
+// RUN:   | FileCheck --check-prefixes=CHECK-FPC-FAST-HONOR,WARN_FHP_DEPRECATED %s
+// WARN_FHP_DEPRECATED: clang: warning: argument '-ffp-contract=fast-honor-pragmas' is deprecated, use '-ffp-contract=fast' instead [-Wdeprecated]
----------------
MaskRay wrote:

We generally don't check the string before "warning" (can be customized)

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


More information about the cfe-commits mailing list