https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64625

--- Comment #6 from howarth at bromo dot med.uc.edu ---
The code producing this problematic symbol appears to be...

/* Holds a decl for __OFFLOAD_TABLE__.  */
static GTY(()) tree offload_symbol_decl;

/* Get the __OFFLOAD_TABLE__ symbol. */
static tree
get_offload_symbol_decl (void)
{
  if (!offload_symbol_decl)
    {
      tree decl = build_decl (UNKNOWN_LOCATION, VAR_DECL,
                              get_identifier ("__OFFLOAD_TABLE__"),
                              ptr_type_node);
      TREE_ADDRESSABLE (decl) = 1;
      TREE_PUBLIC (decl) = 1;
      DECL_EXTERNAL (decl) = 1;
      DECL_WEAK (decl) = 1;
      DECL_ATTRIBUTES (decl)
        = tree_cons (get_identifier ("weak"),
                     NULL_TREE, DECL_ATTRIBUTES (decl));
      offload_symbol_decl = decl;
    }
  return offload_symbol_decl;
}

in mop-low.c but get_offload_symbol_decl() is used to assign offload_table in
expand_omp_target().

Reply via email to