• Ian Lance Taylor's avatar
    Separate the alignment of a field from the alignment of the · 4e841748
    Ian Lance Taylor authored
    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
    4e841748
Name
Last commit
Last update
..
container Loading commit data...
fmt Loading commit data...
go Loading commit data...
hash Loading commit data...
http Loading commit data...
io Loading commit data...
json Loading commit data...
math Loading commit data...
net Loading commit data...
os Loading commit data...
reflect Loading commit data...
regexp Loading commit data...
strconv Loading commit data...
sync Loading commit data...
syscall Loading commit data...
tabwriter Loading commit data...
time Loading commit data...
unicode Loading commit data...
Makefile Loading commit data...
bignum.go Loading commit data...
bignum_test.go Loading commit data...
bufio.go Loading commit data...
bufio_test.go Loading commit data...
exec.go Loading commit data...
exec_test.go Loading commit data...
flag.go Loading commit data...
flag_test.go Loading commit data...
log.go Loading commit data...
log_test.go Loading commit data...
malloc.go Loading commit data...
once.go Loading commit data...
once_test.go Loading commit data...
rand.go Loading commit data...
sort.go Loading commit data...
sort_test.go Loading commit data...
strings.go Loading commit data...
strings_test.go Loading commit data...
testing.go Loading commit data...
utf8.go Loading commit data...
utf8_test.go Loading commit data...
xml.go Loading commit data...