From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 882 invoked by alias); 20 Jan 2002 20:53:03 -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 827 invoked from network); 20 Jan 2002 20:53:01 -0000 Received: from unknown (HELO sunsite.ms.mff.cuni.cz) (195.113.19.66) by sources.redhat.com with SMTP; 20 Jan 2002 20:53:01 -0000 Received: (from jj@localhost) by sunsite.ms.mff.cuni.cz (8.9.3/8.9.3) id VAA01067; Sun, 20 Jan 2002 21:55:38 +0100 Date: Sun, 20 Jan 2002 19:38:00 -0000 From: Jakub Jelinek To: "H . J . Lu" Cc: gcc@gcc.gnu.org, GNU C Library Subject: Re: gcc 3.1 20020118 miscompiled ld.so on Linux/mips Message-ID: <20020120215538.A520@sunsite.ms.mff.cuni.cz> Reply-To: Jakub Jelinek References: <20020120113945.A7433@lucon.org> <20020120124537.A8405@lucon.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.4us In-Reply-To: <20020120124537.A8405@lucon.org>; from H . J . Lu on Sun, Jan 20, 2002 at 12:45:37PM -0800 X-SW-Source: 2002-01/txt/msg01353.txt.bz2 On Sun, Jan 20, 2002 at 12:45:37PM -0800, H . J . Lu wrote: > On Sun, Jan 20, 2002 at 11:39:45AM -0800, H . J . Lu wrote: > > When I used gcc 3.1 20020118 to compile the current glibc from trunk > > on Linux/mips, I got > > > > # /export/build/gnu/glibc-3.1/build-mipsel-linux/elf/ld.so.1 > > zsh: 30232 segmentation fault (core dumped) /export/build/gnu/glibc-3.1/build-mipsel-linux/elf/ld.so.1 > > > > gcc 2.96 is ok. I am looking into it now. > > > > It looks like we need to add -finline-limit=xxxx at least for mips. We > have to inline all functions in rtld.c if they are marked as inline > since we can't do relocation during ld.so bootstrap. The same is true for ia32, alpha or ia64 and I believe other arches too. I just always build glibc with -finline-limit=2000 these days and it works. Unless somebody is working on improving the tree inliner heuristics for 3.1, I believe it should e.g. double the limit for functions with explicit inline keyword as opposed to -O3 inlining and double even that for inline nested functions. Jakub