• Julian Phillips's avatar
    gc: fix pc/line table · b99d7229
    Julian Phillips authored
    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
    b99d7229
Name
Last commit
Last update
..
cmd Loading commit data...
lib9 Loading commit data...
libbio Loading commit data...
libmach Loading commit data...
pkg Loading commit data...
Make.ccmd Loading commit data...
Make.clib Loading commit data...
Make.cmd Loading commit data...
Make.common Loading commit data...
Make.inc Loading commit data...
Make.pkg Loading commit data...
all-qemu.bash Loading commit data...
all.bash Loading commit data...
clean.bash Loading commit data...
env.bash Loading commit data...
make.bash Loading commit data...
quietgcc.bash Loading commit data...
run.bash Loading commit data...
sudo.bash Loading commit data...
version.bash Loading commit data...