[PATCH] D88737: [AIX] Turn -fdata-sections on by default in Clang

Digger via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Oct 5 08:01:23 PDT 2020


DiggerLin added inline comments.


================
Comment at: clang/include/clang/Basic/CodeGenOptions.def:46
                                      ///< aliases to base ctors when possible.
-CODEGENOPT(DataSections      , 1, 0) ///< Set when -fdata-sections is enabled.
+CODEGENOPT(DataSections      , 1, 0) ///< Set by default, or when -f[no-]data-sections.
+CODEGENOPT(HasExplicitDataSections, 1, 0) ///< Set when -f[no-]data-sections is set.
----------------
turn on by default , it should be changed to CODEGENOPT(DataSections      , 1, 1) ?



CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D88737/new/

https://reviews.llvm.org/D88737



More information about the cfe-commits mailing list