From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15010 invoked by alias); 13 Dec 2001 09:41:32 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 14879 invoked from network); 13 Dec 2001 09:40:11 -0000 Received: from unknown (HELO dot.cygnus.com) (205.180.230.224) by sources.redhat.com with SMTP; 13 Dec 2001 09:40:11 -0000 Received: (from rth@localhost) by dot.cygnus.com (8.11.6/8.11.6) id fBD9e3J01144; Thu, 13 Dec 2001 01:40:03 -0800 X-Authentication-Warning: dot.cygnus.com: rth set sender to rth@redhat.com using -f Date: Thu, 13 Dec 2001 01:44:00 -0000 From: Richard Henderson To: Arnaud Charlet Cc: gcc@gcc.gnu.org Subject: Re: Use of -fPIC on Tru64 Message-ID: <20011213014003.C1122@redhat.com> Mail-Followup-To: Richard Henderson , Arnaud Charlet , gcc@gcc.gnu.org References: <20011213102908.B10630@dublin.int.act-europe.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20011213102908.B10630@dublin.int.act-europe.fr>; from charlet@ACT-Europe.FR on Thu, Dec 13, 2001 at 10:29:08AM +0100 X-SW-Source: 2001-12/txt/msg00693.txt.bz2 On Thu, Dec 13, 2001 at 10:29:08AM +0100, Arnaud Charlet wrote: > I do not understand why -fPIC is specified explicitely. -fPIC affects assumptions about how names bind. Without pic, it is assumed that void foo() { ... } void bar() { foo(); } bar calls the version of foo immediately above. With pic, this is not a valid assumption, because the name foo may bind from another library earlier in the search order. r~