This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [m68k] Restore some original predefines and cleanup m68k targetflags
- From: Bernardo Innocenti <bernie at develer dot com>
- To: Hans-Peter Nilsson <hp at bitrange dot com>
- Cc: Andreas Schwab <schwab at suse dot de>, Gunther Nikl <gni at gecko dot de>, GCC Patches <gcc-patches at gcc dot gnu dot org>,Ben Elliston <bje at wasabisystems dot com>
- Date: Sat, 20 Sep 2003 06:53:26 +0200
- Subject: Re: [m68k] Restore some original predefines and cleanup m68k targetflags
- Organization: Develer S.r.l.
- References: <Pine.BSF.4.44.0309192349211.11411-100000@dair.pair.com>
Hans-Peter Nilsson wrote:
I would agree with you on using uclinux in place of linux, but
then would I really need to append -uclibc to it?
I can imagine other libraries being used with uclinux than
uclibc. There was even an attempt to use glibc, but there
were... problems.
Well, the biggest problem with my boards with just 4MB of RAM
would be its size. uClibc has also become annoyingly big
nowadays... 0.9.21 introduced a lot of fine grained options
to make it smaller again, such as kicking out 15KB worth
of strerror() messages.
uclibc is compatible enough with glibc to share the libstdc++
config/os/gnu-linux subdirectory with just a few lines of
fixes.
With a proper configuration you wouldn't need "a few lines of
fixes", right? Either way, uclibc is still not glibc and I
doubt it has yet implemented the finer points of C++ and thread
support. Don't be blinded by whatever gcc uses and matches
configure-wise.
You'll be surprised to see this:
http://www.uclibc.org/cgi-bin/cvsweb/toolchain/gcc-3.3.1/sources/gcc-810-libstd%2B%2B-locale.patch?rev=HEAD&content-type=text/vnd.viewcvs-markup
Of course to get it working you must enable C locale,
wchar/mbchar stuff, posix threads...
Actually, I need more tweaks in libstdc++ to disable all that
crap that would make my statically built binaries too big for
my tiny system.
The problem with libstdc++ is that nobody is testing it on
systems configured with some advanced glibc features disabled.
I bet many ARM based systems using glibc would need that.
So, what shall I use, m68k-uclinux or m68k-uclinux-uclibc?
I still prefer the former. Since it's mostly a matter of
taste, I could also make it work both ways :-)
--
// Bernardo Innocenti - Develer S.r.l., R&D dept.
\X/ http://www.develer.com/
Please don't send Word attachments - http://www.gnu.org/philosophy/no-word-attachments.html