[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#180486: gcc-3.2: miscompilation on powerpc with -O2 or higher



Greetings!

Matthias Klose <doko@cs.tu-berlin.de> writes:

> Camm Maguire writes:
> > Package: gcc-3.2
> > Version: 1:3.2.2-1
> > Severity: normal
> > 
> > When compiling GCL, the produced lisp image segfaults early on
> > iwhen using -O2 or higher.  All is fine with -O, or with full
> > optimization using earlier gcc versions on this platform.
> 
> - did GCL compile correctly with gcc-3.0 and/or gcc-2.95 using -O2?

2.95 yes, actually even with -O3 -fomit-frame-pointer
3.0 don't know.

> - does GCL compile correctly with gcc-snapshot using -O2?
> 

Don't know, but will try it if I get a chance.  I used to be able to
try different compilers on Debian project machines relatively easily
by:

dpkg --fsys-tarfile <needed debs> | tar xf -
export GCC_EXEC_PREFIX=$HOME/usr/lib/gcc-lib/
export LD_LIBRARY_PATH=$HOME/lib:$HOME/usr/lib
export LIBRARY_PATH=$HOME/lib:$HOME/usr/lib
export C_INCLUDE_PATH=$HOME/usr/include
ln -s gcc-??? usr/bin/gcc
export PATH=$HOME/usr/bin:$PATH

but this isn't working of late anymore, due to

1) dependencies on latest libc, which in turn depends on latest ld.so,
   which I can't install as a user
2) oddities with stdlib.h installed with the above procedure.  Some
   defines are missing.

Take care,


> 
> 
> 

-- 
Camm Maguire			     			camm@enhanced.com
==========================================================================
"The earth is but one country, and mankind its citizens."  --  Baha'u'llah



Reply to: