From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21145 invoked by alias); 12 Dec 2001 16:46:09 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 21098 invoked by uid 71); 12 Dec 2001 16:46:06 -0000 Date: Wed, 12 Dec 2001 08:46:00 -0000 Message-ID: <20011212164605.21094.qmail@sources.redhat.com> To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, From: rodrigc@gcc.gnu.org Subject: Re: c++/4135: Unable to link: "non-virtual thunk" in HPUX11 and AIX (gcc-3.0.1) Reply-To: rodrigc@gcc.gnu.org X-SW-Source: 2001-12/txt/msg00747.txt.bz2 List-Id: The following reply was made to PR c++/4135; it has been noted by GNATS. From: rodrigc@gcc.gnu.org To: gcc-bugs@gcc.gnu.org, gcc-gnats@gcc.gnu.org, gcc-prs@gcc.gnu.org, nobody@gcc.gnu.org, rodrigc@gcc.gnu.org, torbjorn.gard@streamserve.com Cc: Subject: Re: c++/4135: Unable to link: "non-virtual thunk" in HPUX11 and AIX (gcc-3.0.1) Date: 12 Dec 2001 16:40:02 -0000 Synopsis: Unable to link: "non-virtual thunk" in HPUX11 and AIX (gcc-3.0.1) State-Changed-From-To: open->feedback State-Changed-By: rodrigc State-Changed-When: Wed Dec 12 08:40:01 2001 State-Changed-Why: Does the patch you provided in PR 3536 solve this problem? Hello, The thunks were actually generated and found in the object files but they were not public so linking failed. Adding the three lower lines to the function make_thunk() in /gcc/cp/method.c seems solve problem 3536. Line 361: /* And neither is it a clone. */ DECL_CLONED_FUNCTION (thunk) = NULL_TREE; DECL_EXTERNAL (thunk) = 1; + /* Make the thunk public unless it is for a destructor */ + if (!DECL_DESTRUCTOR_P (func_decl)) + TREE_PUBLIC (thunk) = 1; http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&pr=4135&database=gcc