Descriptioncmd/gc: emit code for extern = <N>
https://codereview.appspot.com/152700045/ made it possible for struct literals assigned to globals to use <N> as the RHS. Normally, this is to zero out variables on first use. Because globals are already zero (or their linker initialized value), we just ignored this.
Now that <N> can occur from non-initialization code, we need to emit this code. We don't use <N> for initialization of globals any more, so this shouldn't cause any excessive zeroing.
Fixes issue 8961.
Patch Set 1 #Patch Set 2 : diff -r 0588896d408d113ab8751136392d35a51b2ea7eb https://code.google.com/p/go/ #Patch Set 3 : diff -r 0588896d408d113ab8751136392d35a51b2ea7eb https://code.google.com/p/go/ #Patch Set 4 : diff -r 8a62c0b8dfd46cccb317d2f75b625aa434c650c9 https://code.google.com/p/go/ #
MessagesTotal messages: 3
|