[all-commits] [llvm/llvm-project] d9bef7: [Driver] -fstack-size-section: pass -stack-size-se...

Fangrui Song via All-commits all-commits at lists.llvm.org
Sat Dec 10 02:15:55 PST 2022

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d9bef74a212b502271eb8fa6a0a8714126e88b2b
  Author: Fangrui Song <i at maskray.me>
  Date:   2022-12-10 (Sat, 10 Dec 2022)

  Changed paths:
    M clang/lib/Driver/ToolChains/CommonArgs.cpp
    M clang/test/Driver/stack-size-section.c

  Log Message:
  [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

More information about the All-commits mailing list