]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/gc: fix build
authorDmitriy Vyukov <dvyukov@google.com>
Thu, 1 Nov 2012 18:59:53 +0000 (22:59 +0400)
committerDmitriy Vyukov <dvyukov@google.com>
Thu, 1 Nov 2012 18:59:53 +0000 (22:59 +0400)
R=golang-dev
CC=golang-dev
https://golang.org/cl/6826047

src/cmd/gc/racewalk.c

index a09b7adf4395f87118fffc787b46110738724d75..9e942498ba102200e339a786806f2dcb457bdc0f 100644 (file)
@@ -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
        // getcallerpc. We use -widthptr(FP) for x86.
        // BUG: this will not work on arm.
@@ -58,8 +51,7 @@ racewalk(Node *fn)
        nodpc->type = types[TUINTPTR];
        nodpc->xoffset = -widthptr;
        nd = mkcall("racefuncenter", T, nil, nodpc);
-       fn->enter = list(fn->enter, nd);
->>>>>>> other
+       fn->enter = concat(list1(nd), fn->enter);
        nd = mkcall("racefuncexit", T, nil);
        fn->exit = list(fn->exit, nd);
        racewalklist(curfn->nbody, nil);