From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27592 invoked by alias); 31 Oct 2004 18:25:11 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 27570 invoked from network); 31 Oct 2004 18:25:10 -0000 Received: from unknown (HELO hiauly1.hia.nrc.ca) (132.246.100.193) by sourceware.org with SMTP; 31 Oct 2004 18:25:10 -0000 Received: from hiauly1.hia.nrc.ca (hiauly1.hia.nrc.ca [127.0.0.1] (may be forged)) by hiauly1.hia.nrc.ca (8.12.9-20030917/8.12.9) with ESMTP id i9VIP2ko021134; Sun, 31 Oct 2004 13:25:02 -0500 (EST) Received: (from dave@localhost) by hiauly1.hia.nrc.ca (8.12.9-20030917/8.12.9/Submit) id i9VIP1Dk021133; Sun, 31 Oct 2004 13:25:01 -0500 (EST) Message-Id: <200410311825.i9VIP1Dk021133@hiauly1.hia.nrc.ca> Subject: Re: [PATCH] Fix PR target/16304: AIX 4.x forward reference proble To: dave@hiauly1.hia.nrc.ca (John David Anglin) Date: Sun, 31 Oct 2004 20:11:00 -0000 From: "John David Anglin" Cc: mark@codesourcery.com, gcc-patches@gcc.gnu.org, china@thewrittenword.com, dje@gcc.gnu.org In-Reply-To: from "John David Anglin" at Oct 30, 2004 05:26:23 pm MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-SW-Source: 2004-10/txt/msg02765.txt.bz2 > > Do we actually need the thunk alias stuff for AIX? AFAIK, things worked > > fine without that for a long time; I believe it was added for GNU/Linux > > magic. Can we just diable thunk aliases for AIX? > > I believe that can be done. This is probably best done using the TARGET_USE_LOCAL_THUNK_ALIAS_P macro that Danny Smith added to the main branch on 2004-04-08. This change could be back ported to 3.4. Using a thunk alias avoids in some situations the linker adding a stub between the thunk and thunk function. Having a direct jump from thunk to thunk function is necessary under HP-UX. Thus, this magic is important for systems other than GNU/Linux. Dave -- J. David Anglin dave.anglin@nrc-cnrc.gc.ca National Research Council of Canada (613) 990-0752 (FAX: 952-6602)