Skip to content
Snippets Groups Projects
Forked from Glasgow Haskell Compiler / GHC
Source project has a limited visibility.
  • Cheng Shao's avatar
    54da5271
    driver: build C/C++ with -ffunction-sections -fdata-sections when split sections is enabled · 54da5271
    Cheng Shao authored
    When -fsplit-sections is passed to GHC, pass -ffunction-sections
    -fdata-sections to gcc/clang when building C/C++. Previously,
    -fsplit-sections was only respected by the NCG/LLVM backends, but not
    the unregisterised backend; the GHC driver did not pass
    -fdata-sections and -ffunction-sections to the C compiler, which
    resulted in excessive executable sizes.
    
    Fixes #23381.
    
    -------------------------
    Metric Decrease:
        size_hello_artifact
        size_hello_unicode
    -------------------------
    
    (cherry picked from commit 02b1f91e)
    (cherry picked from commit 74cdf564)
    (cherry picked from commit 03da9015)
    54da5271
    History
    driver: build C/C++ with -ffunction-sections -fdata-sections when split sections is enabled
    Cheng Shao authored
    When -fsplit-sections is passed to GHC, pass -ffunction-sections
    -fdata-sections to gcc/clang when building C/C++. Previously,
    -fsplit-sections was only respected by the NCG/LLVM backends, but not
    the unregisterised backend; the GHC driver did not pass
    -fdata-sections and -ffunction-sections to the C compiler, which
    resulted in excessive executable sizes.
    
    Fixes #23381.
    
    -------------------------
    Metric Decrease:
        size_hello_artifact
        size_hello_unicode
    -------------------------
    
    (cherry picked from commit 02b1f91e)
    (cherry picked from commit 74cdf564)
    (cherry picked from commit 03da9015)
Code owners
Assign users and groups as approvers for specific file changes. Learn more.