From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3280 invoked by alias); 9 Sep 2004 08:19:04 -0000 Mailing-List: contact libc-hacker-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-hacker-owner@sources.redhat.com Received: (qmail 3260 invoked from network); 9 Sep 2004 08:19:04 -0000 Received: from unknown (HELO sunsite.ms.mff.cuni.cz) (195.113.15.26) by sourceware.org with SMTP; 9 Sep 2004 08:19:04 -0000 Received: from sunsite.ms.mff.cuni.cz (sunsite.mff.cuni.cz [127.0.0.1]) by sunsite.ms.mff.cuni.cz (8.12.8/8.12.8) with ESMTP id i8960m3j011384; Thu, 9 Sep 2004 08:00:48 +0200 Received: (from jakub@localhost) by sunsite.ms.mff.cuni.cz (8.12.8/8.12.8/Submit) id i8960lKd011382; Thu, 9 Sep 2004 08:00:47 +0200 Date: Thu, 09 Sep 2004 08:19:00 -0000 From: Jakub Jelinek To: Andreas Jaeger Cc: libc-hacker@sources.redhat.com, Roland McGrath Subject: Re: Fix locale/weight.h with GCC 3.5 Message-ID: <20040909060047.GS30497@sunsite.ms.mff.cuni.cz> Reply-To: Jakub Jelinek References: <200409081701.i88H1lmf031187@magilla.sf.frob.com> <200409082144.33512.aj@suse.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200409082144.33512.aj@suse.de> User-Agent: Mutt/1.4.1i X-SW-Source: 2004-09/txt/msg00039.txt.bz2 On Wed, Sep 08, 2004 at 09:44:33PM +0200, Andreas Jaeger wrote: > Wait - this seems to be produced even with the current glibc without my > changes (glibc compiled by GCC 3.3): > nm /lib64/ld-linux-x86-64.so.2 |grep elf_machine_rela > 0000000000000d40 t elf_machine_rela.0 > 0000000000007fa0 t elf_machine_rela.0 > 000000000000d010 t elf_machine_rela.0 > 0000000000000d70 t elf_machine_rela_relative.1 > 0000000000008330 t elf_machine_rela_relative.1 > > For reference, compile: > int > test (int j) > { > > static inline int > __attribute__ ((always_inline)) > test_inline (int i) > { > return i++; > } > > return test_inline (j); > } > > I get with GCC 3.3: > gromit:/tmp:[0]$ gcc -Wall -c t.c -O2 > gromit:/tmp:[0]$ nm t.o > 0000000000000010 T test > 0000000000000000 t test_inline.0 You mean hammer branch GCC 3.3, right? Stock 3.3 should be ok. GCC 3.4 initially also emitted successfully inlined nested functions as separate functions too, but this was fixed in July this year, see PR middle-end/15345, c/16450. Jakub