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:
parent
a48b35e961
commit
340f28deab
@ -132,7 +132,7 @@ version.go: mkversion
|
||||
./mkversion >version.go
|
||||
|
||||
%.c: %.goc goc2c
|
||||
./goc2c $< > $@.tmp
|
||||
./goc2c `pwd`/$< > $@.tmp
|
||||
mv -f $@.tmp $@
|
||||
|
||||
%.$O: $(GOARCH)/%.c
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user