• Russ Cox's avatar
    cmd/gc: move genembedtramp into portable code · 1f51d279
    Russ Cox authored
    Requires adding new linker instruction
            RET	f(SB)
    meaning return but then immediately call f.
    This is what you'd use to implement a tail call after
    fiddling with the arguments, but the compiler only
    uses it in genwrapper.
    
    This CL eliminates the copy-and-paste genembedtramp
    functions from 5g/8g/6g and makes the code run on ARM
    for the first time. It removes a small special case for function
    generation, which should help Carl a bit, but at the same time
    it does not bother to implement general tail call optimization,
    which we do not want anyway.
    
    Fixes #5627.
    
    R=ken2
    CC=golang-dev
    https://golang.org/cl/10057044
    1f51d279
Name
Last commit
Last update
..
Makefile Loading commit data...
cgen.c Loading commit data...
doc.go Loading commit data...
galign.c Loading commit data...
gg.h Loading commit data...
ggen.c Loading commit data...
gobj.c Loading commit data...
gsubr.c Loading commit data...
list.c Loading commit data...
opt.h Loading commit data...
peep.c Loading commit data...
reg.c Loading commit data...