From: Dirk Behme <dirk.behme@googlemail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 1/2 v6] Make libgcc inclusion from common Makefile overridable by platform config file
Date: Sun, 12 Jul 2009 18:12:11 +0200 [thread overview]
Message-ID: <4A5A0B5B.2010408@googlemail.com> (raw)
In-Reply-To: <20090712155024.52BC9832E416@gemini.denx.de>
Dear Wolfgang,
Wolfgang Denk wrote:
> Dear Dirk,
>
> In message <4A59F95A.6060803@googlemail.com> you wrote:
>>> I really hesitate to do that. It seems that not using the compiler
>>> provided library is not such a clever thing to do. The compile writes
>>> probably know better what a specific version of GCC needs that
>>> anybody else.
>> Yes, you are basically right. But ;)
>>
>> But, as Jean-Christophe mentioned above, it's a pain with the various
>> ARM tool chains floating around. Some are older, some are newer, some
>> are configured for EABI, some not, some are configured for software
>> floating point, some for hardware floating point, etc., etc.
>
> Right. And each of these is supposed to come with it's own version of
> libgcc, configured exactly for the requirements of this specific
> version and configuration of GCC.
>
> And it turns out that the majority of architectures works just fine
> with such a setup, just using libgcc for functions required for and
> provided by the compiler.
>
> If the compiler provided functions cannot be used, this is IMO an
> indication of a broken toolchain, which should either be fixed (if
> it's under some form of maintenance) or abandoned (because you will
> have the same problems again in other situations outside of U-Boot).
>
>> While I as developer might be able to find a recent tool chain with a
>> libgcc compatible with U-Boot, I think we should avoid this pain for
>> our users. Users which like to "just compile U-Boot" and then we tell
>> them "well, your tool chain you seem to be happy with doesn't link
>> U-Boot, for U-Boot you have to install an other one" I think wouldn't
>> make them happy.
>
>>From the technical point of view it is only reasonable to point out
> that these users have a broken toolchain, and that they should take
> the first opportunity to fix or replace it.
>
> Of course it it nice if we can also provide a workaround for them, so
> they can update at a point in time that is convenient to them. But the
> implementation of such a workaround should be clean, and eventually be
> used only for systems that really need it.
>
> In no case we should make the use of such a workaround for broken
> setups the rule which has to be used by all systems (and eventually
> all architectures, even those that never had such problems in the
> first place).
Ah, I understand, most probably we are not aligned about what we talk,
sorry. Yes, I know, there was some discussion about the Makefiles and
that there are some requests to change them. Unfortunately, I'm no
Makefile expert.
So I'm only talking about ARM systems/architecture. If the Makefiles
discussed previously touch other systems/architectures, too, then this
is not what I'm talking about.
> This is why I really hesitate to apply these patches - they make the
> workaround for a few broken systems the rule, instead of making clear
> that this is an exception needed only by some (broken) systems.
For me the broken systems are in a first step ARM tool chains. Nothing
more. Not sure if we can limit it to a sub-group of ARM systems,
though? E.g. would it possible to have a CONFIG_SYS_DONT_RELY_ON_LIBGCC?
>> Regarding not using the compilers library and if this clever: No, it
>> isn't clever, you are right again. The compiler's library version is
>> most probably better optimized. But, we are dealing with a boot loader
>
> This is in no way a question of optimization. If we provide
> replacements for the libgcc functions, _we_ will have to maintain
> these and make sure they work correctly with all versions of GCC that
> exist in the multiverse and with all of their possible and impossible
> configurations.
It was my understanding that Jean-Christophe copied this code from
kernel? Like we do with some other systems, e.g. MTD? So it's
maintained by kernel developers? Sorry if I missed something here.
> That's a lot of work we put on ouw own back for - for
> what?
>
>> here. So for the topic we discuss here, I think avoiding some pain for
>> us ("my tool chain doesn't compile U-Boot, help!" mails at this list)
>> and our users (see above) is the stronger argument than some
>> optimization/performance issues in some (seldom?) used math functions.
>
> I think that answering a few mails, pointing out known problems with
> broken tool chains requires by far less amount of effort than adding
> this code. Heck, discussing and testing of this patch took already
> way more of my time than replying to all related messages in the last
> 3 years together...
>
>
> I think the patch needs to be changed such that it needs to be
> specifically enabled for broken tool chains, and that by default all
> systems behave the same, i. e. assume a working tool chain and use
> libgcc.
Yes. I talk about "broken tool chains == ARM tool chains". Nothing
more. If the Makefile changes in the patches we talk about do some
more, then that's not what I mean.
Best regards
Dirk
next prev parent reply other threads:[~2009-07-12 16:12 UTC|newest]
Thread overview: 69+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-08 19:36 [U-Boot] [PATCH v3] libgcc inclusion from common Makefile overwritable from platform configs files Jean-Christophe PLAGNIOL-VILLARD
2009-07-08 19:42 ` Scott Wood
2009-07-08 20:09 ` Jean-Christophe PLAGNIOL-VILLARD
2009-07-08 20:14 ` [U-Boot] [PATCH V4] " Jean-Christophe PLAGNIOL-VILLARD
2009-07-08 20:26 ` Scott Wood
2009-07-08 20:33 ` Jean-Christophe PLAGNIOL-VILLARD
2009-07-08 20:38 ` [U-Boot] [PATCH V5] " Jean-Christophe PLAGNIOL-VILLARD
2009-07-08 20:38 ` [U-Boot] [PATCH 2/2] netstar/voiceblue: remove no-need libgcc link for eeprom standalone Jean-Christophe PLAGNIOL-VILLARD
2009-07-20 22:03 ` Wolfgang Denk
2009-07-08 20:55 ` [U-Boot] [PATCH V5] libgcc inclusion from common Makefile overwritable from platform configs files Wolfgang Denk
2009-07-08 21:19 ` Jean-Christophe PLAGNIOL-VILLARD
2009-07-08 21:29 ` Wolfgang Denk
2009-07-08 20:30 ` [U-Boot] [PATCH V4] " Wolfgang Denk
2009-07-08 20:45 ` Jean-Christophe PLAGNIOL-VILLARD
2009-07-08 20:47 ` Mike Frysinger
2009-07-09 10:24 ` [U-Boot] [PATCH 1/2 v6] Make libgcc inclusion from common Makefile overridable by platform config file Jean-Christophe PLAGNIOL-VILLARD
2009-07-12 7:54 ` Dirk Behme
2009-07-12 8:02 ` Stefan Roese
2009-07-12 8:15 ` Dirk Behme
2009-07-12 10:29 ` Wolfgang Denk
2009-07-12 12:06 ` Jean-Christophe PLAGNIOL-VILLARD
2009-07-12 12:13 ` Dirk Behme
2009-07-12 12:39 ` Jean-Christophe PLAGNIOL-VILLARD
2009-07-12 14:36 ` Wolfgang Denk
2009-07-12 14:55 ` Dirk Behme
2009-07-12 15:50 ` Wolfgang Denk
2009-07-12 16:12 ` Dirk Behme [this message]
2009-07-12 18:17 ` Wolfgang Denk
2009-07-12 19:22 ` Jean-Christophe PLAGNIOL-VILLARD
2009-07-12 19:35 ` Wolfgang Denk
2009-07-12 19:51 ` Jean-Christophe PLAGNIOL-VILLARD
2009-07-12 21:27 ` Wolfgang Denk
2009-07-12 16:17 ` Jean-Christophe PLAGNIOL-VILLARD
2009-07-12 18:29 ` Wolfgang Denk
2009-07-12 19:06 ` Dirk Behme
2009-07-12 19:30 ` Wolfgang Denk
2009-07-13 9:25 ` Mike Frysinger
2009-07-13 16:00 ` Dirk Behme
2009-07-15 22:18 ` Scott Wood
2009-07-15 22:43 ` Mike Frysinger
2009-07-15 23:03 ` Scott Wood
2009-07-15 23:54 ` Mike Frysinger
2009-07-16 15:36 ` Scott Wood
2009-07-16 15:42 ` Wolfgang Denk
2009-07-16 15:56 ` Scott Wood
2009-07-17 11:27 ` Detlev Zundel
2009-07-17 11:37 ` Wolfgang Denk
2009-07-17 11:41 ` Wolfgang Denk
2009-07-17 15:24 ` Scott Wood
2009-07-16 11:11 ` Wolfgang Denk
2009-07-13 7:36 ` Stefan Roese
2009-07-13 15:46 ` Dirk Behme
2009-07-13 18:16 ` Mike Frysinger
2009-07-23 9:36 ` Wolfgang Denk
2009-07-23 11:09 ` [U-Boot] [PATCH] Make linking against libgcc configurable Wolfgang Denk
2009-07-23 11:15 ` [U-Boot] [PATCH v2] " Wolfgang Denk
2009-07-23 11:27 ` [U-Boot] [PATCH] arm: add _lshrdi3.S Heiko Schocher
2009-07-23 11:41 ` Wolfgang Denk
2009-07-23 12:16 ` Heiko Schocher
2009-07-26 22:11 ` Wolfgang Denk
2009-07-23 13:28 ` [U-Boot] [PATCH v2] Make linking against libgcc configurable Daniel Gorsulowski
2009-07-23 14:12 ` Heiko Schocher
2009-07-23 14:43 ` Daniel Gorsulowski
2009-07-23 14:48 ` Daniel Gorsulowski
2009-07-23 15:33 ` Heiko Schocher
2009-07-24 6:07 ` Daniel Gorsulowski
2009-07-27 6:26 ` Heiko Schocher
2009-07-23 16:45 ` Wolfgang Denk
2009-07-26 22:11 ` Wolfgang Denk
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4A5A0B5B.2010408@googlemail.com \
--to=dirk.behme@googlemail.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox