[PATCH] D145173: Make section attribute and -ffunction-sections play nicely

Paul Robinson via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Mar 7 06:49:05 PST 2023


probinson abandoned this revision.
probinson added a comment.

I think the GC behavior with explicit section names is currently a little peculiar. For functions without a section name, -ffunction-sections allows GC to happen at the individual function level. With a section name, GC would happen at the level of all-or-nothing per input file, regardless of -ffunction-sections. That just seems unexpected and inconsistent to me.
But it is the current behavior, and given the objections it's not worth pursuing this.


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

https://reviews.llvm.org/D145173



More information about the cfe-commits mailing list