Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmd/compile: wrong argument order in DIE of function that has some arguments on the stack #46055

aarzilli opened this issue May 8, 2021 · 2 comments


Copy link

@aarzilli aarzilli commented May 8, 2021

$ go version
go version devel go1.17-4c8f48ed4f Sat May 8 05:57:31 2021 +0000 linux/amd64

Compile this function:

func regabistacktest(s1, s2, s3, s4, s5 string, n uint8) (string, string, string, string, string, uint8) {
	return s1+s2, s2+s3, s3+s4, s4+s5, s5+s1, 2*n

with -N -l, main.regabistacktest's DIE has the arguments in the order: s1, s2, s3, s4, n, s5 instead of s1, s2, s3, s4, s5, n.

cc @thanm

@thanm thanm self-assigned this May 8, 2021
Copy link

@thanm thanm commented May 8, 2021

Thanks, I'll take a look. I thought we had that sorted out already, but apparently not.

Copy link

@gopherbot gopherbot commented May 11, 2021

Change mentions this issue: cmd/compile/internal/dwarfgen: fix DWARF param DIE ordering

@gopherbot gopherbot closed this in fd4631e May 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants