mirror of
https://github.com/golang/go
synced 2024-11-20 03:04:40 -07:00
cmd/gc: fix build
R=golang-dev CC=golang-dev https://golang.org/cl/6826047
This commit is contained in:
parent
de10a23db1
commit
936498e5dc
@ -43,13 +43,6 @@ racewalk(Node *fn)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
<<<<<<< local
|
|
||||||
// TODO(dvyukov): ideally this should be:
|
|
||||||
// racefuncenter(getreturnaddress())
|
|
||||||
// because it's much more costly to obtain from runtime library.
|
|
||||||
nd = mkcall("racefuncenter", T, nil);
|
|
||||||
fn->enter = concat(list1(nd), fn->enter);
|
|
||||||
=======
|
|
||||||
// nodpc is the PC of the caller as extracted by
|
// nodpc is the PC of the caller as extracted by
|
||||||
// getcallerpc. We use -widthptr(FP) for x86.
|
// getcallerpc. We use -widthptr(FP) for x86.
|
||||||
// BUG: this will not work on arm.
|
// BUG: this will not work on arm.
|
||||||
@ -58,8 +51,7 @@ racewalk(Node *fn)
|
|||||||
nodpc->type = types[TUINTPTR];
|
nodpc->type = types[TUINTPTR];
|
||||||
nodpc->xoffset = -widthptr;
|
nodpc->xoffset = -widthptr;
|
||||||
nd = mkcall("racefuncenter", T, nil, nodpc);
|
nd = mkcall("racefuncenter", T, nil, nodpc);
|
||||||
fn->enter = list(fn->enter, nd);
|
fn->enter = concat(list1(nd), fn->enter);
|
||||||
>>>>>>> other
|
|
||||||
nd = mkcall("racefuncexit", T, nil);
|
nd = mkcall("racefuncexit", T, nil);
|
||||||
fn->exit = list(fn->exit, nd);
|
fn->exit = list(fn->exit, nd);
|
||||||
racewalklist(curfn->nbody, nil);
|
racewalklist(curfn->nbody, nil);
|
||||||
|
Loading…
Reference in New Issue
Block a user