This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

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


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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]