[all-commits] [llvm/llvm-project] c505ce: Deprecate -fheinous-gnu-extensions; introduce a ne...
Aaron Ballman via All-commits
all-commits at lists.llvm.org
Fri Aug 23 12:38:42 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: c505ce9df7006edabf402a73782121c44b697289
https://github.com/llvm/llvm-project/commit/c505ce9df7006edabf402a73782121c44b697289
Author: Aaron Ballman <aaron at aaronballman.com>
Date: 2024-08-23 (Fri, 23 Aug 2024)
Changed paths:
M clang/docs/ReleaseNotes.rst
M clang/include/clang/Basic/DiagnosticSemaKinds.td
M clang/include/clang/Basic/LangOptions.def
M clang/include/clang/Driver/Options.td
M clang/lib/Sema/SemaStmtAsm.cpp
M clang/test/Analysis/asm.cpp
M clang/test/Analysis/cfg.c
M clang/test/Analysis/cfg.cpp
A clang/test/Driver/heinous-gnu-extensions.c
M clang/test/Misc/warning-flags.c
M clang/test/Sema/heinous-extensions-off.c
M clang/test/Sema/heinous-extensions-on.c
Log Message:
-----------
Deprecate -fheinous-gnu-extensions; introduce a new warning flag (#105821)
The new warning flag is `-Winvalid-gnu-asm-cast`, which is enabled by
default and is a downgradable diagnostic which defaults to an error.
This language dialect flag only controls whether a single diagnostic is
emitted as a warning or as an error, and has never been expanded to
include other behaviors. Given the rather perjorative name, it's better
for us to just expose a diagnostic flag for the one warning in question
and let the user elect to do `-Wno-error=` if they need to.
There's not a lot of use of the language dialect flag in the wild, but
there is some use of it. For the time being, this aliases the -f flag to
`-Wno-error=invalid-gnu-asm-cast`, but the -f flag can eventually be
removed.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list