This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Fix "-shared" bug in collect2
- From: law at redhat dot com
- To: "John David Anglin" <dave at hiauly1 dot hia dot nrc dot ca>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Thu, 03 Jan 2002 10:55:13 -0700
- Subject: Re: Fix "-shared" bug in collect2
- Reply-to: law at redhat dot com
> The change to using a shared libgcc for 32-bit hpux 10 and 11 exposed
> a small bug in collect2 that causes numerous failures in the g++ and objc
> testsuites. Collect2's argument processing doesn't distinguish between
> "-shared" and "-shared-libgcc", and as a result, incorrect constructor
> files are created for non-shared objects. Tested on hppa2.0w-hp-hpux11.11:
> <http://gcc.gnu.org/ml/gcc-testresults/2002-01/msg00034.html>.
>
> OK?
>
> Dave
> --
> J. David Anglin dave.anglin@nrc.ca
> National Research Council of Canada (613) 990-0752 (FAX: 952-660
> 5)
>
> 2002-01-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
>
> * collect2.c (main): Use strcmp when testing for "-shared".
This is fine. Thanks for tracking it down.
jeff