driver: build C/C++ with -ffunction-sections -fdata-sections when split sections is enabled
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)
Loading
-
mentioned in commit 378bb448
-
mentioned in commit 134863df
-
mentioned in commit 0aee272d
-
mentioned in commit 3fd62ebe
-
mentioned in commit 03da9015
-
mentioned in commit af49e893
-
mentioned in commit 6cb78fb5
-
mentioned in commit 1000f88d
-
mentioned in commit 13a2b529
-
mentioned in commit 92537f81
-
mentioned in commit 4855d531
-
mentioned in commit 3f8d90b0
-
mentioned in commit 19ba44f6
-
mentioned in commit ba1364e2
-
mentioned in commit 54da5271
-
mentioned in commit a74925be
Please register or sign in to comment