mirror of
https://github.com/golang/go
synced 2024-11-20 09:04:44 -07:00
b99d722963
When a line directive was encountered we would push a new 'z' entry into the history to indicate the start of new file attributation, and a 'Z' entry to change line numbering. However we didn't pop the 'z' entry, so we were actually corrupting the history stack. The most obvious occurance of this was in the code that build the symbol tables for the DWARF information - where an internal stack in the linker would overflow when more than a few line directives were encountered in a single stack (Issue 1878). So now we pop the 'z' entry when we encounter the end of the file that the directive was in, which maintains the history stack integrity. Also, although new 'z' entries for new files had relative paths expanded, the same was not done for line directives. Now we do it for line directives also - so that the now correct DWARF information has the full path available. Fixes #1878. R=rsc CC=golang-dev https://golang.org/cl/4938042 |
||
---|---|---|
.. | ||
align.c | ||
bisonerrors | ||
bits.c | ||
builtin.c.boot | ||
closure.c | ||
const.c | ||
cplx.c | ||
dcl.c | ||
doc.go | ||
export.c | ||
gen.c | ||
go.errors | ||
go.h | ||
go.y | ||
init.c | ||
lex.c | ||
Makefile | ||
md5.c | ||
md5.h | ||
mkbuiltin | ||
mkbuiltin1.c | ||
mkopnames | ||
mparith1.c | ||
mparith2.c | ||
mparith3.c | ||
obj.c | ||
pgen.c | ||
print.c | ||
range.c | ||
reflect.c | ||
runtime.go | ||
select.c | ||
sinit.c | ||
subr.c | ||
swt.c | ||
typecheck.c | ||
unsafe.c | ||
unsafe.go | ||
walk.c |