From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20257 invoked by alias); 28 Apr 2002 07:05:35 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 20234 invoked by uid 61); 28 Apr 2002 07:05:35 -0000 Date: Sun, 28 Apr 2002 00:05:00 -0000 Message-ID: <20020428070535.20233.qmail@sources.redhat.com> To: davem@redhat.com, mark@codesourcery.com, jason@redhat.com, gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, ghazi@caip.rutgers.edu, nobody@gcc.gnu.org From: davem@gcc.gnu.org Reply-To: davem@gcc.gnu.org, davem@redhat.com, mark@codesourcery.com, jason@redhat.com, gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, ghazi@caip.rutgers.edu, nobody@gcc.gnu.org, gcc-gnats@gcc.gnu.org Subject: Re: c++/6482: sparc-sun-solaris2.7 gcc-3.1 g++ testsuite failure in g++.dg/special/conpr-2.C X-SW-Source: 2002-04/txt/msg01537.txt.bz2 List-Id: Synopsis: sparc-sun-solaris2.7 gcc-3.1 g++ testsuite failure in g++.dg/special/conpr-2.C State-Changed-From-To: open->analyzed State-Changed-By: davem State-Changed-When: Sun Apr 28 00:05:34 2002 State-Changed-Why: The init_priority attribute is currently not supported without GNU ld. Have a look at the change I made on 2002-04-08 to get this working when using GNU ld. The changelog in question starts with the line "Make init_priority work on Sparc when using GNU ld" Someone needs to figure out if it is possible to make Sun's linker understand constructor priorities, and to sort them. Once we know that, CTORS_SECTION_ASM_OP and DTORS_SECTION_ASM_OP can be set appropriately. Another idea is to use collect2 to do the sorting. All the bits are there in fact, but it is meant mostly for handling a.out systems. I had suggested this collect2 idea to richard henderson and his response was not to bother using something gross like collect2 just to fix a feature that is only really used by ECOS. http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=6482