This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Fix linking C executables/shared libraries which use __attribute__((cleanup ()))


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]