From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26480 invoked by alias); 16 Jan 2015 16:05:14 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 26421 invoked by uid 48); 16 Jan 2015 16:05:10 -0000 From: "howarth at bromo dot med.uc.edu" To: gcc-bugs@gcc.gnu.org Subject: [Bug libgomp/64625] ___OFFLOAD_TABLE__ symbol not produced on x86_64 darwin Date: Fri, 16 Jan 2015 16:05:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libgomp X-Bugzilla-Version: 5.0 X-Bugzilla-Keywords: openacc, openmp X-Bugzilla-Severity: normal X-Bugzilla-Who: howarth at bromo dot med.uc.edu X-Bugzilla-Status: NEW X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 5.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-01/txt/msg01546.txt.bz2 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().