Descriptioncmd/8g: Make clearfat non-interleaved with pointer calculations.
clearfat (used to zero initialize structures) will use AX for x86 block ops. If we write to AX while calculating the dest pointer, we will fill the structure with incorrect values.
Since 64-bit arithmetic uses AX to synthesize a 64-bit register, getting an adress by indexing with 64-bit ops can clobber the register.
Fixes issue 5820.
Patch Set 1 #Patch Set 2 : diff -r f3170d09181d https://code.google.com/p/go/ #Patch Set 3 : diff -r f3170d09181d https://code.google.com/p/go/ #Patch Set 4 : diff -r 28a2612c7ff1 https://code.google.com/p/go/ #
MessagesTotal messages: 3
|