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: Gabriel Dos Reis <gdr at integrable-solutions dot net>
- To: Mark Mitchell <mark at codesourcery dot com>
- Cc: Jakub Jelinek <jakub at redhat dot com>, Richard Henderson <rth at redhat dot com>, Alan Modra <amodra at bigpond dot net dot au>, gcc-patches at gcc dot gnu dot org
- Date: 31 Mar 2004 10:07:47 +0200
- Subject: Re: [PATCH] Fix linking C executables/shared libraries which use __attribute__((cleanup ()))
- Organization: Integrable Solutions
- References: <20040327135002.GV15946@sunsite.ms.mff.cuni.cz><4069AF09.6050304@codesourcery.com>
Mark Mitchell <mark@codesourcery.com> writes:
| Jakub Jelinek wrote:
|
| >Hi!
| >
| >Alan recently implemented support for conditional linking of shared
| >libraries. The follwoing patch is the GCC side of the needed changes.
| >Without it for example gcc 3.4+ compiled NPTL C programs using
| >pthread_cleanup_{push,pop} will not handle cancellation properly.
| >This patch just changes the default behaviour, when neither -static-libgcc
| >nor -shared-libgcc is specified. The program or shared library will be
| >linked against libgcc_s if EH is used and just against libgcc.a if not.
| >Ok to commit?
| >For 3.4/3.3 as well (bootstrapped/regtested in 3.4 on x86_64-redhat-linux
| >so far)?
| >
| This, and the follow-on patch, are OK for 3.4.
The same holds for 3.3.4
-- Gaby