{"action":"created","issue":{"url":"https://api.github.com/repos/golang/go/issues/17644","repository_url":"https://api.github.com/repos/golang/go","labels_url":"https://api.github.com/repos/golang/go/issues/17644/labels{/name}","comments_url":"https://api.github.com/repos/golang/go/issues/17644/comments","events_url":"https://api.github.com/repos/golang/go/issues/17644/events","html_url":"https://github.com/golang/go/issues/17644","id":185882983,"number":17644,"title":"cmd/compile: autotmp_ variables included in DWARF","user":{"login":"aarzilli","id":303620,"avatar_url":"https://avatars.githubusercontent.com/u/303620?v=3","gravatar_id":"","url":"https://api.github.com/users/aarzilli","html_url":"https://github.com/aarzilli","followers_url":"https://api.github.com/users/aarzilli/followers","following_url":"https://api.github.com/users/aarzilli/following{/other_user}","gists_url":"https://api.github.com/users/aarzilli/gists{/gist_id}","starred_url":"https://api.github.com/users/aarzilli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aarzilli/subscriptions","organizations_url":"https://api.github.com/users/aarzilli/orgs","repos_url":"https://api.github.com/users/aarzilli/repos","events_url":"https://api.github.com/users/aarzilli/events{/privacy}","received_events_url":"https://api.github.com/users/aarzilli/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-10-28T09:51:08Z","updated_at":"2016-10-28T10:00:19Z","closed_at":null,"body":"Please answer these questions before submitting your issue. Thanks!\r\n\r\n### What version of Go are you using (`go version`)?\r\n\r\n`go version devel +f595848 Fri Oct 28 04:36:31 2016 +0000 linux/amd64`\r\n\r\n### What operating system and processor architecture are you using (`go env`)?\r\n\r\n```\r\nGOARCH=\"amd64\"\r\nGOBIN=\"\"\r\nGOEXE=\"\"\r\nGOHOSTARCH=\"amd64\"\r\nGOHOSTOS=\"linux\"\r\nGOOS=\"linux\"\r\nGOPATH=\"/home/a/n/go/\"\r\nGORACE=\"\"\r\nGOROOT=\"/usr/local/go-tip\"\r\nGOTOOLDIR=\"/usr/local/go-tip/pkg/tool/linux_amd64\"\r\nGCCGO=\"gccgo\"\r\nCC=\"gcc\"\r\nGOGCCFLAGS=\"-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build802960213=/tmp/go-build -gno-record-gcc-switches\"\r\nCXX=\"g++\"\r\nCGO_ENABLED=\"1\"\r\nPKG_CONFIG=\"pkg-config\"\r\nCGO_CFLAGS=\"-g -O2\"\r\nCGO_CPPFLAGS=\"\"\r\nCGO_CXXFLAGS=\"-g -O2\"\r\nCGO_FFLAGS=\"-g -O2\"\r\nCGO_LDFLAGS=\"-g -O2\"\r\n```\r\n\r\n### What did you do?\r\n\r\nComplied [this](https://play.golang.org/p/ZiPNwOZbfc) with `gcflags='-N -l'` then ran `objdump --dwarf` on the output.\r\n\r\n### What did you expect to see?\r\n\r\nNo `autotmp_nn` variables in `.debug_info`.\r\n\r\n### What did you see instead?\r\n\r\n\r\n```\r\n <1><1901a>: Abbrev Number: 2 (DW_TAG_subprogram)\r\n    <1901b>   DW_AT_name        : main.main\r\n    <19025>   DW_AT_low_pc      : 0x44a4e0\r\n    <1902d>   DW_AT_high_pc     : 0x44a550\r\n    <19035>   DW_AT_external    : 1\r\n <2><19036>: Abbrev Number: 4 (DW_TAG_variable)\r\n    <19037>   DW_AT_name        : i\r\n    <19039>   DW_AT_location    : 4 byte block: 9c 11 50 22     (DW_OP_call_frame_cfa; DW_OP_consts: -48; DW_OP_plus)\r\n    <1903e>   DW_AT_type        : <0x1b07e>\r\n <2><19046>: Abbrev Number: 4 (DW_TAG_variable)\r\n    <19047>   DW_AT_name        : i#1\r\n    <1904b>   DW_AT_location    : 4 byte block: 9c 11 58 22     (DW_OP_call_frame_cfa; DW_OP_consts: -40; DW_OP_plus)\r\n    <19050>   DW_AT_type        : <0x1b07e>\r\n <2><19058>: Abbrev Number: 4 (DW_TAG_variable)\r\n    <19059>   DW_AT_name        : autotmp_1\r\n    <19063>   DW_AT_location    : 4 byte block: 9c 11 60 22     (DW_OP_call_frame_cfa; DW_OP_consts: -32; DW_OP_plus)\r\n    <19068>   DW_AT_type        : <0x1b07e>\r\n <2><19070>: Abbrev Number: 4 (DW_TAG_variable)\r\n    <19071>   DW_AT_name        : autotmp_0\r\n    <1907b>   DW_AT_location    : 4 byte block: 9c 11 68 22     (DW_OP_call_frame_cfa; DW_OP_consts: -24; DW_OP_plus)\r\n    <19080>   DW_AT_type        : <0x1b07e>\r\n <2><19088>: Abbrev Number: 0\r\n```\r\n\r\nThis bug was introduced by commit d80e8de54ec633d018ccef94b67c796dda4e1944 see also #17240"},"comment":{"url":"https://api.github.com/repos/golang/go/issues/comments/256883004","html_url":"https://github.com/golang/go/issues/17644#issuecomment-256883004","issue_url":"https://api.github.com/repos/golang/go/issues/17644","id":256883004,"user":{"login":"gopherbot","id":8566911,"avatar_url":"https://avatars.githubusercontent.com/u/8566911?v=3","gravatar_id":"","url":"https://api.github.com/users/gopherbot","html_url":"https://github.com/gopherbot","followers_url":"https://api.github.com/users/gopherbot/followers","following_url":"https://api.github.com/users/gopherbot/following{/other_user}","gists_url":"https://api.github.com/users/gopherbot/gists{/gist_id}","starred_url":"https://api.github.com/users/gopherbot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gopherbot/subscriptions","organizations_url":"https://api.github.com/users/gopherbot/orgs","repos_url":"https://api.github.com/users/gopherbot/repos","events_url":"https://api.github.com/users/gopherbot/events{/privacy}","received_events_url":"https://api.github.com/users/gopherbot/received_events","type":"User","site_admin":false},"created_at":"2016-10-28T10:00:19Z","updated_at":"2016-10-28T10:00:19Z","body":"CL https://golang.org/cl/32159 mentions this issue."}}
{"actor":{"display_login":"gopherbot"}}