]> Cypherpunks repositories - gostls13.git/commit
build: define getcallerpc in u.h (fix for Plan 9 build)
authorLucio De Re <lucio.dere@gmail.com>
Mon, 25 Jul 2011 17:45:44 +0000 (13:45 -0400)
committerRuss Cox <rsc@golang.org>
Mon, 25 Jul 2011 17:45:44 +0000 (13:45 -0400)
commiteb3f2083f91fa2c48bad4c997f5d8a4378aaf04e
treec8347a2c138815cce5a36832e345b45abbf7eda4
parent12995e2d359e699693d0c56d2e5ed1fab3c7c479
build: define getcallerpc in u.h (fix for Plan 9 build)

. By defining getcallerpc(x) as __builtin_return_address(0)
  here, it becomes possible to use the Plan 9 compatible form
  when compiling using GCC.  The alternative is to add conditional
  compilation based on the compiler identity in "cmd/8g/gsubr.c"
  to distinguish between the two cases.

R=golang-dev
CC=golang-dev, rsc
https://golang.org/cl/4800048
include/u.h