This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: egcs spilling problems
- To: Jim Meyering <meyering at ascend dot com>
- Subject: Re: egcs spilling problems
- From: Horst von Brand <vonbrand at sleipnir dot valparaiso dot cl>
- Date: Thu, 31 Dec 1998 13:51:09 -0400
- cc: Ulrich Drepper <drepper at gnu dot org>, egcs-bugs at cygnus dot com
Jim Meyering <meyering@ascend.com> said:
> I know Uli reported something like this a couple weeks ago,
> but just in case someone needs another data point, here's
> a pretty small piece of code that exhibits the same sort of failure
> on ix86, using linux-2.1.131 and mostly rh5.2 tools.
I've got egcs-19981226, linux-2.2.0-pre1-ac4, glibc-2.0.108,
binutils-2.9.1.0.19a on i586/100. The source (*.c) cited doesn't give
problems.
Note that latest egcs compilers (from 19981213 or so) finally outlawed
invalid asm() constraints on ia32 (specifically, clobbering a register that
is an input to show that it is modified; this has to be done by output into
an unused variable and marking the asm() volatile). Unfortunately, they are
quite common still in the vanilla kernels; Alan Cox has collected patches
to fix that <ftp://ftp.uk.linux.org/pub/linux/alan/> (he has patches for
much more besides this), they are slowly being taken up by Linus' tree.
BTW, I'm right now running linux-2.2.0-pre1-ac4 on i586/100 UP compiled
without any further changes (except for compiler switches) with the above
tools.
Happy hacking!
--
Horst von Brand vonbrand@sleipnir.valparaiso.cl
Casilla 9G, Viņa del Mar, Chile +56 32 672616