public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* egcs-19981005 on i586-linux-gnu + glibc-2.0.96
@ 1998-10-06 22:02 Horst von Brand
  1998-10-06 23:03 ` Zack Weinberg
  0 siblings, 1 reply; 2+ messages in thread
From: Horst von Brand @ 1998-10-06 22:02 UTC (permalink / raw)
  To: egcs, libc-alpha

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 949 bytes --]

The build of egcs crashes after the third stage, when building libiberty:

test x"yes" != xyes || \
  /usr/src/build/build-egcs-19981005/gcc/xgcc -B/usr/src/build/build-egcs-19981005/gcc/ -c -DHAVE_CONFIG_H -O2 -fomit-frame-pointer -march=pentium -I. -I../../../egcs-19981005/libiberty/../include  -fpic ../../../egcs-19981005/libiberty/floatformat.c -o pic/floatformat.o
/usr/include/bits/mathinline.h: In function `floatformat_to_double':
/usr/include/bits/mathinline.h:495: `asm' operand requires impossible reload
make[2]: *** [floatformat.o] Error 1
make[2]: Leaving directory `/usr/src/build/build-egcs-19981005/i586-redhat-linux/libiberty'
make[1]: *** [all-target-libiberty] Error 2
make[1]: Leaving directory `/usr/src/build/build-egcs-19981005'
make: *** [bootstrap-lean] Error 2
-- 
Horst von Brand                             vonbrand@sleipnir.valparaiso.cl
Casilla 9G, Viña del Mar, Chile                               +56 32 672616

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: egcs-19981005 on i586-linux-gnu + glibc-2.0.96
  1998-10-06 22:02 egcs-19981005 on i586-linux-gnu + glibc-2.0.96 Horst von Brand
@ 1998-10-06 23:03 ` Zack Weinberg
  0 siblings, 0 replies; 2+ messages in thread
From: Zack Weinberg @ 1998-10-06 23:03 UTC (permalink / raw)
  To: Horst von Brand; +Cc: egcs, libc-alpha

On Tue, 06 Oct 1998 22:32:54 -0500, Horst von Brand wrote:
>The build of egcs crashes after the third stage, when building libiberty:
>
>  /usr/src/build/build-egcs-19981005/gcc/xgcc -B/usr/src/build/build-egcs-1998
>1005/gcc/ -c -DHAVE_CONFIG_H -O2 -fomit-frame-pointer -march=pentium -I. -I../
>../../egcs-19981005/libiberty/../include  -fpic ../../../egcs-19981005/libiber
>ty/floatformat.c -o pic/floatformat.o
>/usr/include/bits/mathinline.h: In function `floatformat_to_double':
>/usr/include/bits/mathinline.h:495: `asm' operand requires impossible reload

This is an improvement over previous snapshots, which would silently
generate incorrect code from mathinline.h.

The offending function is:

extern inline double ldexp (double x, int y)
{
  register long double v;
  asm volatile ("fscale" : "=t" (v) : "0" (x), "u" ((long double) y));
  return v;
}

I bet it won't have any trouble compiling this snippet by itself, but will
puke when it's inlined.  (Take out "extern inline" to try compiling it by
itself.)

libc people: Anyone know why there are volatile qualifiers on the
mathinline.h asms?

zw

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1998-10-06 23:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-10-06 22:02 egcs-19981005 on i586-linux-gnu + glibc-2.0.96 Horst von Brand
1998-10-06 23:03 ` Zack Weinberg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).