This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
cgraph offloading error?
- From: Nathan Sidwell <nathan at acm dot org>
- To: Jakub Jelinek <jakub at redhat dot com>, Thomas Schwinge <THOMAS_SCHWINGE at mentor dot com>, GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Fri, 30 Oct 2015 13:52:30 -0700
- Subject: cgraph offloading error?
- Authentication-results: sourceware.org; auth=none
This bit of trunk code in cgraph_node::create at around line 500 of cgraph.c
looks wrong. Specifically the contents of the #ifdef -- it's uncompilable as
there's no 'g'.
if ((flag_openacc || flag_openmp)
&& lookup_attribute ("omp declare target", DECL_ATTRIBUTES (decl)))
{
node->offloadable = 1;
#ifdef ENABLE_OFFLOADING
g->have_offload = true;
#endif
}
nathan