Skip to content

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

Closed

Description

@aarzilli
$ 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

Activity

  1. self-assigned this
    on May 8, 2021
  2. thanm commented on May 8, 2021

    @thanm
    Contributor

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

  3. gopherbot commented on May 11, 2021

    @gopherbot
    Contributor

    Change https://golang.org/cl/318829 mentions this issue: cmd/compile/internal/dwarfgen: fix DWARF param DIE ordering

  4. locked and limited conversation to collaborators on May 13, 2022
  5. added a commit that references this issue on Apr 29, 2024
    fd4631e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions