Gcc 4.3 revision 126234 needs more than 6GB to compile 27_io/basic_stringbuf/setbuf/wchar_t/4.cc in libstdc++. It happens on Linux/ia32, Linux/ia64 and Linux/x86-64. Revision 126166 is OK.
I can confirm this. And .../setbuf/char/4.cc is almost as bad.
Created attachment 13836 [details] testcase (unreduced) -O -fno-tree-fre is fine, anything above is borked and eats (slowly) all mem.
Fixed with r126252.
126198 brought the regression