This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Support enforcing use of libgcc_s even with LINK_EH_SPEC
- From: Jakub Jelinek <jakub at redhat dot com>
- To: Rainer Orth <ro at CeBiTec dot Uni-Bielefeld dot DE>
- Cc: gcc-patches at gcc dot gnu dot org, Michael Matz <matz at suse dot de>
- Date: Mon, 21 Nov 2011 18:47:07 +0100
- Subject: Re: Support enforcing use of libgcc_s even with LINK_EH_SPEC
- References: <yddbos5xwcl.fsf@manam.CeBiTec.Uni-Bielefeld.DE>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
On Mon, Nov 21, 2011 at 05:40:26PM +0100, Rainer Orth wrote:
> 2011-11-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
>
> * gcc.c (init_gcc_specs) [USE_SHARED_LIBGCC_FOR_EH]: Always use
> libgcc_s.
> * config/sol2.h [USE_GLD] (USE_SHARED_LIBGCC_FOR_EH): Define.
That's an ugly hack. IMHO we just want to do what has been discussed
earlier, ensure that generated EH info and code generation isn't actually
pessimized because of the clobbers, at least not in the common cases.
Jakub