[Bug c/48190] New: [regression?] Huge memory use while compiling qemu-0.4.0

w41ter at gmail dot com gcc-bugzilla@gcc.gnu.org
Fri Mar 18 16:39:00 GMT 2011


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

           Summary: [regression?] Huge memory use while compiling
                    qemu-0.4.0
           Product: gcc
           Version: 4.5.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: w41ter@gmail.com


Created attachment 23709
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=23709
The patch to qemu code that causes gcc-4.5.2 to hog memory

While compiling qemu-0.4.0, gcc-4.5.2 consumes > 3GB of RAM at one point
(building target-i386/translate.c) instead of < 1GB needed by gcc-4.4.4.

$gcc -v
Using built-in specs.
COLLECT_GCC=/usr/i686-pc-linux-gnu/gcc-bin/4.5.2/gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/i686-pc-linux-gnu/4.5.2/lto-wrapper
Target: i686-pc-linux-gnu
Configured with: /U/portage/sys-devel/gcc-4.5.2/work/gcc-4.5.2/configure
--prefix=/usr --bindir=/usr/i686-pc-linux-gnu/gcc-bin/4.5.2
--includedir=/usr/lib/gcc/i686-pc-linux-gnu/4.5.2/include
--datadir=/usr/share/gcc-data/i686-pc-linux-gnu/4.5.2
--mandir=/usr/share/gcc-data/i686-pc-linux-gnu/4.5.2/man
--infodir=/usr/share/gcc-data/i686-pc-linux-gnu/4.5.2/info
--with-gxx-include-dir=/usr/lib/gcc/i686-pc-linux-gnu/4.5.2/include/g++-v4
--host=i686-pc-linux-gnu --build=i686-pc-linux-gnu --disable-altivec
--disable-fixed-point --without-ppl --without-cloog --disable-lto --enable-nls
--without-included-gettext --with-system-zlib --disable-werror
--enable-secureplt --disable-multilib --enable-libmudflap --disable-libssp
--enable-libgomp --enable-cld
--with-python-dir=/share/gcc-data/i686-pc-linux-gnu/4.5.2/python
--enable-checking=release --enable-java-awt=gtk --with-arch=i686
--enable-languages=c,c++,java --enable-shared --enable-threads=posix
--enable-__cxa_atexit --enable-clocale=gnu
--with-bugurl=http://bugs.gentoo.org/ --with-pkgversion='Gentoo 4.5.2 p1.1,
pie-0.4.5'
Thread model: posix
gcc version 4.5.2 (Gentoo 4.5.2 p1.1, pie-0.4.5) 

CFLAGS="-march=athlon-xp -O2 -pipe"

The memory hogging started with this commit to the qemu git repository, which I
will attach:

commit c832e3de64f1069313fc0672087791cc3dd5b4d8
Author: Richard Henderson
Date:   Mon Jan 10 19:23:47 2011 -0800

    target-i386: Use deposit operation.

    Use this for assignment to the low byte or low word of a register.



More information about the Gcc-bugs mailing list