]> Cypherpunks repositories - gostls13.git/commit
cmd/compile, cmd/link: record compiler flags in DW_AT_producer
authorAustin Clements <austin@google.com>
Tue, 17 Oct 2017 21:09:54 +0000 (17:09 -0400)
committerAustin Clements <austin@google.com>
Wed, 18 Oct 2017 19:32:40 +0000 (19:32 +0000)
commit2c1d2e06afee98d0770427d8b6c29bd9971a0999
tree110acaf7cc582f55e4b480bd07792c49a8b5e14e
parent193088b246f4bbe9a7d3a84ec7f4cc6786dac043
cmd/compile, cmd/link: record compiler flags in DW_AT_producer

This adds a whitelisted subset of compiler flags to the DW_AT_producer
DWARF attribute of each package compilation unit DIE. This is common
practice in DWARF and can help debuggers determine the quality of the
produced debugging information.

Fixes #22168.

Change-Id: I1b994ef2262aa9b88b68eb6e883695d1103acc58
Reviewed-on: https://go-review.googlesource.com/71430
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/cmd/compile/internal/gc/main.go
src/cmd/internal/dwarf/dwarf.go
src/cmd/internal/objabi/flag.go
src/cmd/link/internal/ld/dwarf.go