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


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 
-mminimal-toc -O2 -Wall -W -D_THREAD_SAFE -DQT_SHARED 
-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