[PATCH] Fix linking C executables/shared libraries which use __attribute__((cleanup ()))
Mark Mitchell
mark@codesourcery.com
Tue Mar 30 17:31:00 GMT 2004
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.
--
Mark Mitchell
CodeSourcery, LLC
(916) 791-8304
mark@codesourcery.com
More information about the Gcc-patches
mailing list