• Keith Randall's avatar
    cmd/compile: use innermost line number for -S · 01a1eaa1
    Keith Randall authored
    When functions are inlined, for instructions in the inlined body, does
    -S print the location of the call, or the location of the body? Right
    now, we do the former. I'd like to do the latter by default, it makes
    much more sense when reading disassembly. With mid-stack inlining
    enabled in more cases, this quandry will come up more often.
    
    The original behavior is still available with -S=2. Some tests
    use this mode (so they can find assembly generated by a particular
    source line).
    
    This helped me with understanding what the compiler was doing
    while fixing #29007.
    
    Change-Id: Id14a3a41e1b18901e7c5e460aa4caf6d940ed064
    Reviewed-on: https://go-review.googlesource.com/c/153241Reviewed-by: 's avatarDavid Chase <drchase@google.com>
    01a1eaa1
Name
Last commit
Last update
..
bio Loading commit data...
browser Loading commit data...
buildid Loading commit data...
dwarf Loading commit data...
edit Loading commit data...
gcprog Loading commit data...
goobj Loading commit data...
obj Loading commit data...
objabi Loading commit data...
objfile Loading commit data...
src Loading commit data...
sys Loading commit data...
test2json Loading commit data...