Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
cmd/compile: make UNDEF into a pseudo-instruction #16291
The compiler inserts
One easy fix is to change the assemblers to treat
Another fix is to add
Opinions? I'd rather do the former.
I think treating UNDEF as NOP (no generated code) would be fine. I'm not worried about people depending on it generating real code; assembly isn't under the go1 guarantee.
I remember there being a case where we need a nop that generated real code - maybe before deferreturn so we get correct line numbers? Just make sure we don't break that.