6 Commits

Author SHA1 Message Date
Fangrui Song
d9bef74a21 [Driver] -fstack-size-section: pass -stack-size-section to backend for LTO
The option does not change IR but affect object file generation. Without a
backend option the option is a no-op for in-process ThinLTO.

The problem is known and there are many options similar to -fstack-size-section.
That said, -fstack-size-section has relatively wider adoption, so it probably
makes sense to have custom code for it.

Close https://github.com/llvm/llvm-project/issues/59424
2022-12-10 10:15:29 +00:00
Ying Yi
bfe191dfa7 Disable stack-sizes section by default for PS4.
Differential Revision: https://reviews.llvm.org/D130493
2022-07-27 09:37:20 +01:00
Paul Robinson
4a3e2aff5f Reland "[PS5] Verify defaults to -fno-stack-size-section"
This reverts commit efebb27b745a0d677ad2ea9aefff242c12aef29c.
Fixes typos (accidentally omitted %s from some RUN lines).
2022-05-24 10:09:39 -07:00
Paul Robinson
efebb27b74 Revert "[PS5] Verify defaults to -fno-stack-size-section"
This reverts commit 28432b0f655641df7f9d079cf69ba235038d6340.

Caused some unexpected buildbot failures.
2022-05-24 10:00:33 -07:00
Paul Robinson
28432b0f65 [PS5] Verify defaults to -fno-stack-size-section 2022-05-24 09:47:37 -07:00
Sean Eveson
5110d4f5c0 [Driver] Add flag enabling the function stack size section that was added in r319430
Adds the -fstack-size-section flag to enable the .stack_sizes section. The flag defaults to on for the PS4 triple.

Differential Revision: https://reviews.llvm.org/D40712

llvm-svn: 321992
2018-01-08 13:42:26 +00:00