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)?