[clang] [llvm] [Clang] -fseparate-named-sections option (PR #91028)

Peter Smith via cfe-commits cfe-commits at lists.llvm.org
Tue May 7 07:04:49 PDT 2024


================
@@ -221,6 +221,11 @@ New Compiler Flags
 - ``-fexperimental-modules-reduced-bmi`` enables the Reduced BMI for C++20 named modules.
   See the document of standard C++ modules for details.
 
+- ``-fseparate-named-sections`` uses separate unique sections for global
+  symbols in named special sections (i.e. symbols annotated with
+  ``__attribute__((section(...)))``. This enabled linker GC to collect unused
----------------
smithp35 wrote:

Should it be "This enables linker GC to collect ..."

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


More information about the cfe-commits mailing list