On Tue, 20 Oct 2015, Bernd Schmidt wrote:
> On 10/20/2015 08:34 PM, Alexander Monakov wrote: > > Due to special treatment of types, emitting variables of type _Bool in > > global scope is impossible: extern references are emitted with .u8, but > > definitions use .u64. This patch fixes the issue by treating boolean type > > as > > integer types. > > > > * config/nvptx/nvptx.c (init_output_initializer): Also accept > > BOOLEAN_TYPE. > > Interesting, what was the testcase? I didn't stumble over this one. In any > case, I think this patch is ok for trunk. libgomp has 'bool gomp_cancel_var' in global scope, and since it is not compiled with -ffunction-sections, GOMP_parallel pulls in GOMP_cancel (same TU, parallel.c), which references the variable. Anything with "#pragma omp parallel" would fail to link. Thanks. Alexander