Re: Go patch committed: Fix passing zero-sized global variable to function

2015-12-21 Thread Ian Lance Taylor
On Mon, Dec 21, 2015 at 4:19 PM, Andrew Pinski wrote: > On Mon, Dec 21, 2015 at 4:10 PM, Ian Lance Taylor wrote: >> The GNU linker doesn't support a zero-sized global variable that is >> dynamically exported, so gccgo generates those global variables with a >> size of 1 byte. Unfortunately, that

Re: Go patch committed: Fix passing zero-sized global variable to function

2015-12-21 Thread Ian Lance Taylor
On Mon, Dec 21, 2015 at 4:19 PM, Andrew Pinski wrote: > On Mon, Dec 21, 2015 at 4:10 PM, Ian Lance Taylor wrote: >> The GNU linker doesn't support a zero-sized global variable that is >> dynamically exported, so gccgo generates those global variables with a >> size of 1 byte. Unfortunately, that

Re: Go patch committed: Fix passing zero-sized global variable to function

2015-12-21 Thread Andrew Pinski
On Mon, Dec 21, 2015 at 4:10 PM, Ian Lance Taylor wrote: > The GNU linker doesn't support a zero-sized global variable that is > dynamically exported, so gccgo generates those global variables with a > size of 1 byte. Unfortunately, that means that passing a global > variable to a function that t