I don't know how much memory gcc is "supposed" to use but this seems disproportionate.
Seen on r140777 on Ubuntu Hardy. Obviously the testcase itself is meaningless, but it is supposed to be free of undefined behavior. Before CPP it was about 37 kB. [EMAIL PROTECTED]:~/volatile/tmp43$ current-gcc -Os -g foo.c small2.c: In function func_41: small2.c:309: warning: large integer implicitly truncated to unsigned type cc1: out of memory allocating 268435456 bytes after a total of 29876224 bytes [EMAIL PROTECTED]:~/volatile/tmp43$ current-gcc -v Using built-in specs. Target: i686-pc-linux-gnu Configured with: ../configure --program-prefix=current- --enable-languages=c,c++ --prefix=/home/regehr Thread model: posix gcc version 4.4.0 20080930 (experimental) (GCC) -- Summary: cc1: out of memory Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: regehr at cs dot utah dot edu GCC build triplet: i686-pc-linux-gnu GCC host triplet: i686-pc-linux-gnu GCC target triplet: i686-pc-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37709