1
0
mirror of https://github.com/golang/go synced 2024-11-22 06:04:39 -07:00

runtime: correct line numbers for .goc files.

Linenumbers start at 1.
Also call goc2c with an absolute pathi to preserve debug info.

R=rsc, r, ken2
CC=golang-dev
https://golang.org/cl/1954049
This commit is contained in:
Luuk van Dijk 2010-08-18 00:16:05 +02:00
parent a48b35e961
commit 340f28deab
2 changed files with 2 additions and 2 deletions

View File

@ -132,7 +132,7 @@ version.go: mkversion
./mkversion >version.go
%.c: %.goc goc2c
./goc2c $< > $@.tmp
./goc2c `pwd`/$< > $@.tmp
mv -f $@.tmp $@
%.$O: $(GOARCH)/%.c

View File

@ -28,7 +28,7 @@ static int gcc;
/* File and line number */
static const char *file;
static unsigned int lineno;
static unsigned int lineno = 1;
/* List of names and types. */
struct params {