From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7727 invoked by alias); 3 Jun 2011 17:13:14 -0000 Received: (qmail 7690 invoked by uid 22791); 3 Jun 2011 17:13:12 -0000 X-SWARE-Spam-Status: No, hits=-1.7 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,RCVD_IN_DNSWL_NONE X-Spam-Check-By: sourceware.org Received: from caibbdcaaaaf.dreamhost.com (HELO homiemail-a46.g.dreamhost.com) (208.113.200.5) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 03 Jun 2011 17:12:57 +0000 Received: from homiemail-a46.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a46.g.dreamhost.com (Postfix) with ESMTP id 201A33E4058; Fri, 3 Jun 2011 10:12:57 -0700 (PDT) Received: from redwood.eagercon.com (c-98-210-161-13.hsd1.ca.comcast.net [98.210.161.13]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: eager@eagerm.com) by homiemail-a46.g.dreamhost.com (Postfix) with ESMTPSA id EFFA43E4057; Fri, 3 Jun 2011 10:12:56 -0700 (PDT) Message-ID: <4DE91618.5020003@eagerm.com> Date: Fri, 03 Jun 2011 17:13:00 -0000 From: Michael Eager User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110428 Fedora/3.1.10-1.fc15 Thunderbird/3.1.10 MIME-Version: 1.0 To: Richard Guenther CC: "H.J. Lu" , GCC Patches Subject: Re: PING: PATCH: PR target/46770: Use .init_array/.fini_array sections References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org X-SW-Source: 2011-06/txt/msg00255.txt.bz2 On 06/03/2011 05:31 AM, Richard Guenther wrote: > On Fri, Jun 3, 2011 at 6:31 AM, H.J. Lu wrote: >> On Wed, May 18, 2011 at 8:57 AM, H.J. Lu wrote: >>> On Tue, Apr 26, 2011 at 6:05 AM, H.J. Lu wrote: >>>> On Thu, Mar 31, 2011 at 7:57 AM, H.J. Lu wrote: >>>>> On Mon, Mar 21, 2011 at 11:40 AM, H.J. Lu wrote: >>>>>> On Mon, Mar 14, 2011 at 12:28 PM, H.J. Lu wrote: >>>>>>> On Thu, Jan 27, 2011 at 2:40 AM, Richard Guenther >>>>>>> wrote: >>>>>>>> On Thu, Jan 27, 2011 at 12:12 AM, H.J. Lu wrote: >>>>>>>>> On Tue, Dec 14, 2010 at 05:20:48PM -0800, H.J. Lu wrote: >>>>>>>>>> This patch uses .init_array/.fini_array sections instead of >>>>>>>>>> .ctors/.dtors sections if mixing .init_array/.fini_array and >>>>>>>>>> .ctors/.dtors sections with init_priority works. >>>>>>>>>> >>>>>>>>>> It removes .ctors/.ctors sections from executables and DSOes, which will >>>>>>>>>> remove one function call at startup time from each executable and DSO. >>>>>>>>>> It should reduce image size and improve system startup time. >>>>>>>>>> >>>>>>>>>> If a platform with a working .init_array/.fini_array support needs a >>>>>>>>>> different .init_array/.fini_array implementation, it can set >>>>>>>>>> use_initfini_array to no. >>>>>>>>>> >>>>>>>>>> Since .init_array/.fini_array is a target feature. --enable-initfini-array >>>>>>>>>> is default to no unless the native run-time test is passed. >>>>>>>>>> >>>>>>>>>> To pass the native run-time test, a linker with SORT_BY_INIT_PRIORITY >>>>>>>>>> support is required. The binutils patch is available at >>>>>>>>>> >>>>>>>>>> http://sourceware.org/ml/binutils/2010-12/msg00466.html >>>>>>>>> >>>>>>>>> Linker patch has been checked in. >>>>>>>>> >>>>>>>>>> >>>>>>>>>> This patch passed 32bit/64bit regression test on Linux/x86-64. Any >>>>>>>>>> comments? >>>>>>>>>> >>>>>>>>> >>>>>>>>> This updated patch fixes build on Linux/ia64 and should work on others. >>>>>>>>> Any comments? >>>>>>>> >>>>>>>> Yes. This is stage1 material. >>>>>>>> >>>>>>> >>>>>>> Here is the updated patch. OK for trunk? >>>>>>> >>>>>>> Thanks. >>>>>>> >>>>>>> >>>>>>> -- >>>>>>> H.J. >>>>>>> ---- >>>>>>> 2011-03-14 H.J. Lu >>>>>>> >>>>>>> PR target/46770 >>>>>>> * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Removed. >>>>>>> >>>>>>> * config.gcc (use_initfini_array): New variable. >>>>>>> Use initfini-array.o if supported. >>>>>>> >>>>>>> * crtstuff.c: Don't generate .ctors nor .dtors sections if >>>>>>> NO_CTORS_DTORS_SECTIONS is defined. >>>>>>> >>>>>>> * configure.ac: Remove gcc_AC_INITFINI_ARRAY. Add >>>>>>> --enable-initfini-array and check if .init_array can be used with >>>>>>> .ctors. >>>>>>> >>>>>>> * configure: Regenerated. >>>>>>> >>>>>>> * config/initfini-array.c: New. >>>>>>> * config/initfini-array.h: Likewise. >>>>>>> * config/t-initfini-array: Likewise. >>>>>>> >>>>>>> * config/arm/arm.c (arm_asm_init_sections): Call >>>>>>> elf_initfini_array_init_sections if NO_CTORS_DTORS_SECTIONS >>>>>>> is defined. >>>>>>> * config/avr/avr.c (avr_asm_init_sections): Likewise. >>>>>>> * config/ia64/ia64.c (ia64_asm_init_sections): Likewise. >>>>>>> * config/mep/mep.c (mep_asm_init_sections): Likewise. >>>>>>> * config/microblaze/microblaze.c (microblaze_elf_asm_init_sections): >>>>>>> Likewise. >>>>>>> * config/rs6000/rs6000.c (rs6000_elf_asm_init_sections): Likewise. >>>>>>> * config/stormy16/stormy16.c (xstormy16_asm_init_sections): >>>>>>> Likewise. >>>>>>> * config/v850/v850.c (v850_asm_init_sections): Likewise. >>>>>>> >>>>>> >>>>>> PING: >>>>>> >>>>>> http://gcc.gnu.org/ml/gcc-patches/2011-03/msg00760.html >>>>>> >>>>> >>>>> Any comments? Any objections? >>>>> >>>> >>>> Here is the patch updated for the current trunk. OK for trunk? >>>> >>> >>> PING,. >> >> Hi Richard, >> >> You commented my patch was stage 1 material: >> >> http://gcc.gnu.org/ml/gcc-patches/2011-01/msg01989.html >> >> Is my patch: >> >> http://gcc.gnu.org/ml/gcc-patches/2011-03/msg00760.html >> >> OK for trunk? > > I can't approve the configury changes and would like to defer > to target maintainers for the target specific changes. That said, > I'm not familiar enough with the area of the patch. But yes, > it's stage1 now - so if anyone else wants to approve this patch... Microblaze change OK. -- Michael Eager eager@eagercon.com 1960 Park Blvd., Palo Alto, CA 94306 650-325-8077