Re: [PATCH] Fix PR63868 - Guard offloading with ifdef ENABLE_OFFLOADING

2014-11-18 Thread Jakub Jelinek
On Tue, Nov 18, 2014 at 06:31:59PM +0300, Ilya Verbin wrote: > @@ -8287,7 +8289,9 @@ expand_omp_target (struct omp_region *region) >if (kind == GF_OMP_TARGET_KIND_REGION) > { >unsigned srcidx, dstidx, num; > +#ifdef ENABLE_OFFLOADING >struct cgraph_node *node; > +#endif Pl

[PATCH] Fix PR63868 - Guard offloading with ifdef ENABLE_OFFLOADING

2014-11-18 Thread Ilya Verbin
Hi, This patch disables the generation of sections with offload IR and offload tables by default, when a compiler is configured without --enable-offload-targets= . Bootsrap and regtesting in progress, OK after it finished? -- Ilya PR regression/63868 gcc/ * cgraph.c (cgraph_no