• Russ Cox's avatar
    cmd/gc: correct liveness for func ending in panic · ab9e8d06
    Russ Cox authored
    The registerization code needs the function to end in a RET,
    even if that RET is actually unreachable.
    
    The liveness code needs to avoid such unreachable RETs.
    It had a special case for final RET after JMP, but no case
    for final RET after UNDEF. Instead of expanding the special
    cases, let fixjmp - which already knows what is and is not
    reachable definitively - mark the unreachable RET so that
    the liveness code can identify it.
    
    TBR=iant
    CC=golang-codereviews
    https://golang.org/cl/63680043
    ab9e8d06
Name
Last commit
Last update
api Loading commit data...
doc Loading commit data...
include Loading commit data...
lib Loading commit data...
misc Loading commit data...
src Loading commit data...
test Loading commit data...
.hgignore Loading commit data...
.hgtags Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTORS Loading commit data...
LICENSE Loading commit data...
PATENTS Loading commit data...
README Loading commit data...
favicon.ico Loading commit data...
robots.txt Loading commit data...