cmd/compile: dead-code elimination for empty init functions #34869
Labels
FrozenDueToAge
help wanted
NeedsFix
The path to resolution is known, but the work has not been done.
Milestone
Adding these functions to a package should have no effect:
However, today they currently still emit empty functions (complete with DWARF debugging), which get linked into the inittasks array.
It's probably a simple task for sinit.go to recognize that the init function is empty and then skip processing it further.
/cc @cuonglm
The text was updated successfully, but these errors were encountered: