[PATCH] D153707: [Clang][LoongArch] Consume and check -mabi and -mfpu even if -m*-float is present
Fangrui Song via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sun Jun 25 09:53:49 PDT 2023
MaskRay requested changes to this revision.
MaskRay added inline comments.
This revision now requires changes to proceed.
================
Comment at: clang/include/clang/Basic/DiagnosticDriverKinds.td:732
+def warn_drv_loongarch_conflicting_mabi : Warning<
+ "the -mabi setting '%0' conflicts with that implied by -m*-float (%1); using %1">,
+ InGroup<OptionIgnored>;
----------------
This is not called `setting`. Use `value`
It seems that `ignoring -mabi value '%0' as it conflicts ...` is more conventional.
================
Comment at: clang/test/Driver/loongarch-msingle-float.c:10
-// WARN: warning: argument unused during compilation: '-mfpu=0'
-// WARN: warning: argument unused during compilation: '-mabi=lp64s'
+// NOWARN-NOT: warning: argument unused during compilation: '-mfpu=32'
+// NOWARN-NOT: warning: argument unused during compilation: '-mabi=lp64f'
----------------
Just use `NOWARN-NOT: warning:` to assert that there is no diagnostic
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D153707/new/
https://reviews.llvm.org/D153707
More information about the cfe-commits
mailing list