1
0
mirror of https://github.com/golang/go synced 2024-11-22 16:54:48 -07:00
The Go programming language
Go to file
Ian Lance Taylor 4e84174816 Separate the alignment of a field from the alignment of the
type of the field.  Use the field alignment to compute the
size of a structure.

This may help 8g but is mainly for gccgo.  gccgo maintains the
standard C/C++ ABI for structure field alignment.  For the
i386, this requires that a float64 field in a struct be
aligned on a 32-bit boundary, although for efficiency a
variable of type float64 or []float64 should be aligned on a
64-bit boundary.

I also removed the unused size field from structField.

R=r
DELTA=117  (75 added, 2 deleted, 40 changed)
OCL=26842
CL=26936
2009-03-30 23:19:31 -07:00
doc fix last 3 references to 'type guards' 2009-03-30 16:08:41 -07:00
include libmach: 2009-02-03 15:00:09 -08:00
lib help management of empty pkg and lib directories in perforce 2008-07-21 17:10:49 -07:00
pkg help management of empty pkg and lib directories in perforce 2008-07-21 17:10:49 -07:00
src Separate the alignment of a field from the alignment of the 2009-03-30 23:19:31 -07:00
test tests changed - throw calls panic directly now 2009-03-30 00:28:08 -07:00
usr/gri daily snapshot: 2009-03-30 17:13:11 -07:00