gcc 2.8.0 and 2.8.1

Carsten Pluntke (su0289@sx2.hrz.uni-dortmund.de)
Wed, 15 Apr 1998 08:17:07 +0200 (MET DST)


Since I'm using PPC-Linux I'm currently unable to get a working gcc
2.7.2.3 because when running 'configure' (yes, to compile gcc itself) it
complains that 'powerpc-unknown-linux-gnu' is an unknown target. Maybe
someone got a patch for gcc 2.7.2.3 providing that compilation target?

What follows is what I've experienced with gcc 2.8.x on LinuxPPC:

gcc 2.8.0 (provided as binary from ftp.linuxppc.org) has got a very nasty
bug which lets the compiled programs trash the stack frame as soon as
varargs are used and munges up the le??_to_cpu and cpu_to_le?? routines
native to PPC, causing myterious ext2fs errors if the kernel is recompiled
with it.

gcc 2.8.1 (recompiled using gcc 2.8.0 and 2.8.1 itself later) seems to
have the varargs bug corrected (I haven't checked the other, it's too
risky), but when compiling Xfree86 the Xclients behaved strangely or
responded with an
Aborted (core dumped)

Tracing it using gdb reveals that whenever 'gethostbyname()' is called
(hostname resolution for determining the Xserver to connect to)
gethostbyname() calls something like nss_lookup() and two frames deeper
_do_global_ctors_aux() is called (either in some library or in the main
program itself, depends on how I compiled the libraries) which itself
called abort().

After simply copying the libgcc2.a from 2.8.0 to 2.8.1 the problem
disappeared, but I thing that's no solution for long.

Carsten

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu