This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: CFT: [build] Move crtstuff support to toplevel libgcc
- From: Rainer Orth <ro at CeBiTec dot Uni-Bielefeld dot DE>
- To: Hans-Peter Nilsson <hans-peter dot nilsson at axis dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Tue, 16 Aug 2011 18:37:19 +0200
- Subject: Re: CFT: [build] Move crtstuff support to toplevel libgcc
- References: <201108151813.p7FIDblm011729@ignucius.se.axis.com>
Hans-Peter Nilsson <hans-peter.nilsson@axis.com> writes:
>> From: Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
>> Date: Mon, 15 Aug 2011 19:01:39 +0200
>
>> * Unlike any other target, cris has crisv32-*-none and cris-*-none
>> targets which seem to be aliases for their *-elf counterparts. Do we
>> really need to keep those? While I can inherit e.g. extra_parts from
>> *-*-elf, there's no such thing for *-*-none.
>
> Feel absolutely free to remove them. Otherwise fine at a glance.
Ok, will do, perhaps as a followup when I make a final cleanup round
over libgcc/config.host and gcc/config.gcc.
> BTW, folding crti and crtn into the crtstuff rules had too many
> exceptions? Historically separated from the crtstuff (CRTIN)
> rules, but it seems many targets compiled them the same way.
> I'd guess the patch would have been a bit shorter. Even more
> boring work! :)
This is exactly what I've done, see libgcc/Makefile.in
(crt[in]$(objext)), protected by CUSTOM_CRTIN to deal with the three
remaining cases that need special treatment.
Rainer
--
-----------------------------------------------------------------------------
Rainer Orth, Center for Biotechnology, Bielefeld University