This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Fix linking C executables/shared libraries which use __attribute__((cleanup ()))
- From: Alexandre Oliva <aoliva at redhat dot com>
- To: Jakub Jelinek <jakub at redhat dot com>
- Cc: Richard Henderson <rth at redhat dot com>, Alan Modra <amodra at bigpond dot net dot au>, mark at codesourcery dot com, Gabriel Dos Reis <gdr at integrable-solutions dot net>, gcc-patches at gcc dot gnu dot org
- Date: 27 Mar 2004 14:48:15 -0300
- Subject: Re: [PATCH] Fix linking C executables/shared libraries which use __attribute__((cleanup ()))
- Organization: Red Hat Global Engineering Services Compiler Team
- References: <20040327135002.GV15946@sunsite.ms.mff.cuni.cz>
On Mar 27, 2004, Jakub Jelinek <jakub@redhat.com> wrote:
> 2004-03-27 Alan Modra <amodra@bigpond.net.au>
> Jakub Jelinek <jakub@redhat.com>
> * gcc.c (init_gcc_specs): If HAVE_LD_AS_NEEDED, link with
> -lgcc --as-needed -lgcc_s --no-as-needed by default.
> * configure.ac (HAVE_LD_AS_NEEDED): Check for ld --as-needed.
> * configure: Rebuilt.
> * config.in: Rebuilt.
The configury bits are ok. gcc.c looks good as well, but I don't
think I have the authority to approve it.
--
Alexandre Oliva http://www.ic.unicamp.br/~oliva/
Red Hat Compiler Engineer aoliva@{redhat.com, gcc.gnu.org}
Free Software Evangelist oliva@{lsd.ic.unicamp.br, gnu.org}