Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
gccgo: switch to new export format #17573
cmd/compile recently switched to a non-textual export format (#13241) and now it seems like gccgo is the odd compiler out with respect to the export format. We should update gccgo's export format to match cmd/compile's.
For the team working on Go tooling, this will simplify the work these tools have to do to analyze compiled Go programs in build environments with multiple compilers. Ideally, they shouldn't have to consider that they are possibly looking at gccgo-compiled code; it should be transparent.
Speaking of init functions, why does gccgo gather them up and present them all to the main package, rather than taking the regular and uniform approach of gc, which is (a) make each package initialize its direct dependencies and (b) make init functions idempotent?