1
0
mirror of https://github.com/golang/go synced 2024-10-07 03:21:21 -06:00
go/src/cmd/gc
Rémy Oudompheng 2d3216f4a8 cmd/gc: fix Offsetof computation.
The offset of an embedded field s.X must be relative to s
and not to the implicit s.Field of which X is a direct field.
Moreover, no indirections may happen on the path.

Fixes #4909.

R=nigeltao, ality, daniel.morsing, iant, gri, r
CC=golang-dev
https://golang.org/cl/8287043
2013-04-05 21:24:07 +02:00
..
align.c cmd/gc: silence redundant error prints for misuse of [...]int 2013-02-01 21:21:27 -05:00
bisonerrors cmd/gc: support GNU Bison 2.7 in bisonerrors 2013-01-30 15:06:35 -08:00
bits.c gc: format nits 2011-11-07 11:42:08 -05:00
builtin.c cmd/gc: update runtime.go for new map implementation. 2013-03-27 21:51:07 +01:00
closure.c cmd/gc, cmd/ld: fix warnings on Plan 9 2013-03-30 09:44:52 -07:00
const.c cmd/gc, cmd/ld: fix warnings on Plan 9 2013-03-30 09:44:52 -07:00
cplx.c cmd/gc: silence valgrind error 2013-03-13 16:12:38 -04:00
dcl.c cmd/gc: fix nil pointer dereferences. 2013-03-26 08:20:10 +01:00
doc.go cmd/godoc: use go/build to determine package and example files 2013-02-19 11:19:58 -08:00
esc.c cmd/gc: fix escape analysis of method values 2013-03-20 23:53:27 -04:00
export.c cmd/gc: fix mkbuiltin (gc -A always write all symbols to export section) 2013-02-26 03:14:59 +08:00
fmt.c cmd/gc: use appropriate verb to print array type length. 2013-04-02 00:00:16 +02:00
gen.c cmd/gc: implement method values 2013-03-20 17:11:09 -04:00
go.errors gc: improve error message for composite literals with unexpected newlines 2012-04-02 11:00:55 -04:00
go.h cmd/gc: fix a typo 2013-04-04 11:42:01 -07:00
go.y cmd/gc: preserve safe annotation of package def. 2013-04-03 08:26:08 +11:00
init.c cmd/gc: do not generate code for var _ = ... unless necessary 2012-12-30 12:01:53 -05:00
inl.c cmd/gc: implement method values 2013-03-20 17:11:09 -04:00
lex.c cmd/gc: preserve safe annotation of package def. 2013-04-03 08:26:08 +11:00
Makefile build: update Makefile to track source code dependencies better 2012-03-13 03:31:11 +08:00
md5.c gc: shuffle #includes 2011-08-25 16:25:10 -04:00
md5.h
mkbuiltin cmd/gc: update runtime.go for new map implementation. 2013-03-27 21:51:07 +01:00
mkbuiltin1.c gc: delete old unsafe functions 2012-02-13 15:37:35 -05:00
mkopnames gc: use octal escapes in mkopnames 2012-01-31 18:15:42 -08:00
mparith1.c cmd/gc: implement latest rules for checking make sizes 2013-02-03 14:28:44 -05:00
mparith2.c cmd/gc: error on constant shift overflows. 2012-02-16 00:19:42 +01:00
mparith3.c gc: make constant arith errors a little more friendly 2012-02-11 00:50:56 -05:00
obj.c cmd/gc: enable inlining in generated method wrappers. 2013-03-11 21:24:51 +01:00
order.c cmd/gc: fix eval order in select 2012-12-22 16:46:01 -05:00
pgen.c cmd/gc: don't emit type instructions for nonexisting locals 2013-02-27 19:47:14 +01:00
racewalk.c cmd/gc: fix race instrumentation of append and type switches. 2013-03-27 20:33:17 +01:00
range.c runtime: make map reads multithreaded safe. 2013-04-01 18:59:58 -07:00
reflect.c reflect: add garbage collection info in ChanOf, MapOf, PtrTo, SliceOf 2013-03-26 11:50:29 -07:00
runtime.go cmd/gc: update runtime.go for new map implementation. 2013-03-27 21:51:07 +01:00
select.c cmd/gc: fix eval order in select 2012-12-22 16:46:01 -05:00
sinit.c cmd/gc: treat &T{} like new(T): allocate on stack if possible 2013-02-02 23:54:21 -05:00
subr.c cmd/gc: be more tolerant with recursive types when checking map types. 2013-04-03 08:18:30 +02:00
swt.c cmd/gc: disallow fallthrough in final case of switch 2013-03-15 00:35:09 -04:00
typecheck.c cmd/gc: accept ideal float as indices. 2013-03-22 00:38:23 +01:00
unsafe.c cmd/gc: fix Offsetof computation. 2013-04-05 21:24:07 +02:00
unsafe.go gc: delete old unsafe functions 2012-02-13 15:37:35 -05:00
walk.c cmd/gc: recognize (a.b[0]<<1 | a.b[0]>>31) as a rotate, not just 2013-04-02 21:14:34 +11:00
y.tab.c cmd/gc: preserve safe annotation of package def. 2013-04-03 08:26:08 +11:00
y.tab.h cmd/gc: put 'not used' message on correct line 2013-02-01 21:13:41 -05:00
yerr.h cmd/gc: allow new conversion syntax 2013-02-03 00:03:10 -05:00