gcc 4.2.2 fails to compile file on aix 5.2 with "cc1plus: out of memory allocating", works without optimization

Thomas Mittelstaedt T.Mittelstaedt@cadenas.de
Thu Jan 10 05:38:00 GMT 2008


Hi,

I have trouble compiling a file with optimizations. Without -O2, it 
compiles. gcc 4.1 does compile it with -O2.
I have attached the preprocessed source.


cd /localbuild/source/V9_UNICODE_RESTRUCTURE/3rdparty/Qt/src/script/
make -f Makefile_projects
    g++ -c -mpowerpc -fpermissive 
-I/localbuild/source/V9_UNICODE_RESTRUCTURE/3rdparty/openssl/include 
-mminimal-toc -O2 -Wall -W -D_THREAD_SAFE -DQT_SHARED 
-DQT_EDITION=QT_EDITION_DESKTOP -DQT_BUILD_SCRIPT_LIB 
-DQLALR_NO_QSCRIPTGRAMMAR_DEBUG_INFO -DQT_NO_CAST_TO_ASCII 
-DQT_ASCII_CAST_WARNINGS -DQT3_SUPPORT -DQT_MOC_COMPAT 
-DQ_SCRIPT_DIRECT_CODE -DQT_NO_DEBUG -DQT_CORE_LIB -D_LARGEFILE64_SOURCE 
-D_LARGEFILE_SOURCE -I../../mkspecs/aix-g++ -I. -I../../include/QtCore 
-I../../include/QtCore -I../../include -I../../include/QtScript 
-I.moc/release-shared -I.uic/release-shared -o 
.obj/release-shared/qscriptcontext_p.o qscriptcontext_p.cpp

cc1plus: out of memory allocating 24969464 bytes after a total of 
247167968 bytes
make: 1254-004 The error code from the last command is 1.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: qscriptcontext_p.pp.gz
Type: application/x-gzip
Size: 221847 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-help/attachments/20080110/456beb0e/attachment.bin>


More information about the Gcc-help mailing list