gcc-2.95.2 ceases to produce workable executables after recompiling it with some optimization

Nick Kurshev nickols_k@mail.ru
Sun Jul 2 22:50:00 GMT 2000


Hello!

My system: Linux Mandrake release 6.0 Russian Edition (Venus)
Kernel:    2.2.9-27mdk
CPU:       K6/200

Problem:

Records in my /etc/profile:
CFLAGS="-g -O2 -fomit-frame-pointer -mschedule-prologue -march=k6 -mcpu=k6
-momit-leaf-frame-pointer -fmove-all-movables -freduce-all-givs
-foptimize-register-move -fregmove -ffunction-sections -fdata-sections
-fexpensive-optimizations -foptimize-register-move"
CXXFLAGS=$CFLAGS
export CFLAGS
export CXXFLAGS

After recompiling gcc-2.95.2 with such keys, it ceases to produce workable
executables. Each executable that builded by "new" gcc is produced coredump. 
Also, anew compiled compiler does not compile itself. After reinstalling
gcc-2.7.2.3 and relinking of projects previously compiled by "new" 2.95.2
all work. IMHO, problem in stub or internal gcc libraries.

Best regards! Nick




More information about the Gcc-bugs mailing list