### Here's the output of compilation together with -v and -save-temps:

[eh...@germany src]$ /home/ehren/gcc-4.5/dist/bin/g++ -o jsxml.o -c
-I./../../dist/system_wrappers_js -include
/home/ehren/mozilla-central/js/src/config/gcc_hidden.h
-DOSTYPE=\"Linux2.6.27.21-170.2.56.fc10\" -DOSARCH=Linux -DEXPORT_JS_API  
-I/home/ehren/mozilla-central/js/src -I. -I./../../dist/include
-I./../../dist/include/nsprpub 
-I/home/ehren/mozilla-central/objdir-ff-release/dist/include/nspr  
-I/home/ehren/mozilla-central/js/src  -fPIC  -fno-rtti -fno-exceptions -Wall
-Wpointer-arith -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy
-Wno-non-virtual-dtor -Wcast-align -Wno-invalid-offsetof -Wno-variadic-macros
-Wno-long-long -pedantic -fno-strict-aliasing -pthread -pipe  -DNDEBUG
-DTRIMMED -O3 -fstrict-aliasing    -DMOZILLA_CLIENT -include ./js-confdefs.h
-Wp,-MD,.deps/jsxml.pp /home/ehren/mozilla-central/js/src/jsxml.cpp -v
-save-temps
g++: warning: -pipe ignored because -save-temps specified
Using built-in specs.
COLLECT_GCC=/home/ehren/gcc-4.5/dist/bin/g++
COLLECT_LTO_WRAPPER=/home/ehren/gcc-4.5/dist/libexec/gcc/i686-pc-linux-gnu/4.5.0/lto-wrapper
Target: i686-pc-linux-gnu
Configured with: ../srcdir/configure --without-libstdcxx --enable-checking
--disable-bootstrap CFLAGS='-g3 -O0' --enable-languages=c,c++
--enable-__cxa_atexit --prefix=/home/ehren/gcc-4.5/dist/
Thread model: posix
gcc version 4.5.0 20091122 (experimental) (GCC)
COLLECT_GCC_OPTIONS='-o' 'jsxml.o' '-c' '-I./../../dist/system_wrappers_js'
'-include' '/home/ehren/mozilla-central/js/src/config/gcc_hidden.h'
'-DOSTYPE="Linux2.6.27.21-170.2.56.fc10"' '-DOSARCH=Linux' '-DEXPORT_JS_API'
'-I/home/ehren/mozilla-central/js/src' '-I.' '-I./../../dist/include'
'-I./../../dist/include/nsprpub'
'-I/home/ehren/mozilla-central/objdir-ff-release/dist/include/nspr'
'-I/home/ehren/mozilla-central/js/src' '-fPIC' '-fno-rtti' '-fno-exceptions'
'-Wall' '-Wpointer-arith' '-Woverloaded-virtual' '-Wsynth'
'-Wno-ctor-dtor-privacy' '-Wno-non-virtual-dtor' '-Wcast-align'
'-Wno-invalid-offsetof' '-Wno-variadic-macros' '-Wno-long-long' '-pedantic'
'-pthread' '-pipe' '-DNDEBUG' '-DTRIMMED' '-O3' '-fstrict-aliasing'
'-DMOZILLA_CLIENT' '-include' './js-confdefs.h' '-v' '-save-temps'
'-shared-libgcc' '-mtune=generic'
 /home/ehren/gcc-4.5/dist/libexec/gcc/i686-pc-linux-gnu/4.5.0/cc1plus -E -quiet
-v -I./../../dist/system_wrappers_js -I/home/ehren/mozilla-central/js/src -I.
-I./../../dist/include -I./../../dist/include/nsprpub
-I/home/ehren/mozilla-central/objdir-ff-release/dist/include/nspr
-I/home/ehren/mozilla-central/js/src -D_GNU_SOURCE -D_REENTRANT
-DOSTYPE="Linux2.6.27.21-170.2.56.fc10" -DOSARCH=Linux -DEXPORT_JS_API -DNDEBUG
-DTRIMMED -DMOZILLA_CLIENT -include
/home/ehren/mozilla-central/js/src/config/gcc_hidden.h -include ./js-confdefs.h
-MD .deps/jsxml.pp /home/ehren/mozilla-central/js/src/jsxml.cpp -mtune=generic
-Wall -Wpointer-arith -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy
-Wno-non-virtual-dtor -Wcast-align -Wno-invalid-offsetof -Wno-variadic-macros
-Wno-long-long -pedantic -fPIC -fno-rtti -fno-exceptions -fstrict-aliasing -O3
-fpch-preprocess -o jsxml.ii
ignoring nonexistent directory
"/home/ehren/gcc-4.5/dist/lib/gcc/i686-pc-linux-gnu/4.5.0/../../../../i686-pc-linux-gnu/include"
ignoring nonexistent directory "./../../dist/include/nsprpub"
ignoring duplicate directory "/home/ehren/mozilla-central/js/src"
#include "..." search starts here:
#include <...> search starts here:
 ./../../dist/system_wrappers_js
 /home/ehren/mozilla-central/js/src
 .
 ./../../dist/include
 /home/ehren/mozilla-central/objdir-ff-release/dist/include/nspr

/home/ehren/gcc-4.5/dist/lib/gcc/i686-pc-linux-gnu/4.5.0/../../../../include/c++/4.5.0

/home/ehren/gcc-4.5/dist/lib/gcc/i686-pc-linux-gnu/4.5.0/../../../../include/c++/4.5.0/i686-pc-linux-gnu

/home/ehren/gcc-4.5/dist/lib/gcc/i686-pc-linux-gnu/4.5.0/../../../../include/c++/4.5.0/backward
 /usr/local/include
 /home/ehren/gcc-4.5/dist/include
 /home/ehren/gcc-4.5/dist/lib/gcc/i686-pc-linux-gnu/4.5.0/include
 /home/ehren/gcc-4.5/dist/lib/gcc/i686-pc-linux-gnu/4.5.0/include-fixed
 /usr/include
End of search list.
COLLECT_GCC_OPTIONS='-o' 'jsxml.o' '-c' '-I./../../dist/system_wrappers_js'
'-include' '/home/ehren/mozilla-central/js/src/config/gcc_hidden.h'
'-DOSTYPE="Linux2.6.27.21-170.2.56.fc10"' '-DOSARCH=Linux' '-DEXPORT_JS_API'
'-I/home/ehren/mozilla-central/js/src' '-I.' '-I./../../dist/include'
'-I./../../dist/include/nsprpub'
'-I/home/ehren/mozilla-central/objdir-ff-release/dist/include/nspr'
'-I/home/ehren/mozilla-central/js/src' '-fPIC' '-fno-rtti' '-fno-exceptions'
'-Wall' '-Wpointer-arith' '-Woverloaded-virtual' '-Wsynth'
'-Wno-ctor-dtor-privacy' '-Wno-non-virtual-dtor' '-Wcast-align'
'-Wno-invalid-offsetof' '-Wno-variadic-macros' '-Wno-long-long' '-pedantic'
'-pthread' '-pipe' '-DNDEBUG' '-DTRIMMED' '-O3' '-fstrict-aliasing'
'-DMOZILLA_CLIENT' '-include' './js-confdefs.h' '-v' '-save-temps'
'-shared-libgcc' '-mtune=generic'
 /home/ehren/gcc-4.5/dist/libexec/gcc/i686-pc-linux-gnu/4.5.0/cc1plus
-fpreprocessed jsxml.ii -quiet -dumpbase jsxml.cpp -mtune=generic
-auxbase-strip jsxml.o -O3 -Wall -Wpointer-arith -Woverloaded-virtual -Wsynth
-Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -Wcast-align -Wno-invalid-offsetof
-Wno-variadic-macros -Wno-long-long -pedantic -version -fPIC -fno-rtti
-fno-exceptions -fstrict-aliasing -o jsxml.s
GNU C++ (GCC) version 4.5.0 20091122 (experimental) (i686-pc-linux-gnu)
        compiled by GNU C version 4.3.2 20081105 (Red Hat 4.3.2-7), GMP version
4.2.2, MPFR version 2.3.2
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
GNU C++ (GCC) version 4.5.0 20091122 (experimental) (i686-pc-linux-gnu)
        compiled by GNU C version 4.3.2 20081105 (Red Hat 4.3.2-7), GMP version
4.2.2, MPFR version 2.3.2
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
Compiler executable checksum: 522cd3da0dd675843a32a63f8d25e9db
/home/ehren/mozilla-central/js/src/jsxml.cpp: In function
‘xml_processingInstructions(JSContext*, unsigned int, int*)’:
/home/ehren/mozilla-central/js/src/jsxml.cpp:6351:11: warning: ‘v’ may be used
uninitialized in this function
/home/ehren/mozilla-central/js/src/jsxml.cpp:6351:11: note: ‘v’ was declared
here
/home/ehren/mozilla-central/js/src/jsxml.cpp:6351:11: warning: ‘v’ may be used
uninitialized in this function
/home/ehren/mozilla-central/js/src/jsxml.cpp:6351:11: note: ‘v’ was declared
here
^C

###################
Here GCC fails with something like "failed after allocating 4072 bytes after a
total of xxx bytes". I can get get the exact error message if needed (it takes
sever hours to get to that point).


This is on Fedora 10 2.6.27.21-170.2.56.fc10.i686 btw. However I've run into
the same issue on FC10 x86-64 as well. 
###################


-- 
           Summary: Compiling firefox trunk with 4.5 fails with 'out of
                    memory allocating 4072 bytes after a total of xxx bytes'
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: ehren dot m at gmail dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42139

Reply via email to