-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Closed
Labels
FrozenDueToAgeNeedsFixThe path to resolution is known, but the work has not been done.The path to resolution is known, but the work has not been done.compiler/runtimeIssues related to the Go compiler and/or runtime.Issues related to the Go compiler and/or runtime.
Milestone
Description
Since CL 391014 (a987aaf), cmd/compile now requires the -p flag. There's a lot of code to handle code paths that aren't needed any more.
At least a few cleanups I can think of:
- Initialize types.LocalPkg with base.Ctxt.Pkgpath instead of
""
. - Change types.TypeHash to use t.LinkString instead of fmtTypeIDHash.
- Get rid of "package height" and just sort method sets on identifier and package path. (We can just write package height as 0 in the iexport data format; public importers ignore it anyway.)
- Change cmd/link (or cmd/internal/obj?) to Fatalf if it sees
"".
in any linker symbols.
Perhaps other opportunities.
The iexport file format uses ""
for the current package too, which probably needs to be retained for compatibility with legacy importers.
Metadata
Metadata
Assignees
Labels
FrozenDueToAgeNeedsFixThe path to resolution is known, but the work has not been done.The path to resolution is known, but the work has not been done.compiler/runtimeIssues related to the Go compiler and/or runtime.Issues related to the Go compiler and/or runtime.