summaryrefslogtreecommitdiff
path: root/src/lib/testing.go
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2009-03-30 23:19:31 -0700
committerIan Lance Taylor <iant@golang.org>2009-03-30 23:19:31 -0700
commit1196f564b8c1285aad83e24e921c43c20282458f (patch)
treec95278a94df0d40d67c27de962d1f826cdb38022 /src/lib/testing.go
parent750c5c7a6b676c62601797045603051040578b0f (diff)
downloadgolang-1196f564b8c1285aad83e24e921c43c20282458f.tar.gz
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
Diffstat (limited to 'src/lib/testing.go')
0 files changed, 0 insertions, 0 deletions