[PATCH] D145173: Make section attribute and -ffunction-sections play nicely
Fangrui Song via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Mar 3 14:38:55 PST 2023
MaskRay added a comment.
> the programmer is indicating the function has some special purpose, and is not expected to be garbage collected.
There are use cases that GC semantics are desired. They may place the address function in a variable.
I don't think changing the behavior by default is fine. Using an option may be fine, but it'd be nicer that GCC commits to do this as well.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D145173/new/
https://reviews.llvm.org/D145173
More information about the cfe-commits
mailing list