From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16533 invoked by alias); 20 Nov 2014 17:27:01 -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 16501 invoked by uid 48); 20 Nov 2014 17:26:57 -0000 From: "vries at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug other/63979] [openacc] undefined reference to main._omp_fn.x Date: Thu, 20 Nov 2014 17:27:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: other X-Bugzilla-Version: unknown X-Bugzilla-Keywords: openacc X-Bugzilla-Severity: normal X-Bugzilla-Who: vries at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- 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: 2014-11/txt/msg02302.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63979 --- Comment #4 from vries at gcc dot gnu.org --- > Can you reproduce this with the trunk patch kit I posted internally? > gomp-4_0-branch is somewhat out of date wrt offloading. No, it does not reproduce that way. The split falls somewhat differently: ... Total unit size: 1929, partition size: 900 Step 0: added main._omp_fn.20/24, size 37, cost 1/0 best 1/0, step 0 Step 1: added main._omp_fn.19/23, size 73, cost 2/0 best 2/0, step 1 Step 2: added main._omp_fn.18/22, size 110, cost 3/0 best 3/0, step 2 ... Step 17: added main._omp_fn.3/7, size 660, cost 18/0 best 18/0, step 17 Step 18: added main._omp_fn.2/6, size 696, cost 19/0 best 18/0, step 17 Step 19: added main._omp_fn.1/5, size 714, cost 20/0 best 18/0, step 17 Step 20: added main._omp_fn.0/4, size 732, cost 21/0 best 18/0, step 17 Step 21: added main/3, size 1929, cost 53/21 best 18/0, step 17 Unwinding 4 insertions to step 17 New partition Step 18: added main._omp_fn.2/6, size 36, cost 1/21 best 1/21, step 18 Step 19: added main._omp_fn.1/5, size 54, cost 2/21 best 2/21, step 19 Step 20: added main._omp_fn.0/4, size 72, cost 3/21 best 3/21, step 20 Step 21: added main/3, size 1269, cost 71/24 best 3/21, step 20 ... But I think the main difference is that the offload table and main (using the offload table) are now in the same partition. I don't know whether that's by design or accident.