From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3414 invoked by alias); 5 Aug 2012 11:05:22 -0000 Received: (qmail 3406 invoked by uid 22791); 5 Aug 2012 11:05:20 -0000 X-SWARE-Spam-Status: No, hits=-3.6 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 05 Aug 2012 11:05:07 +0000 From: "jason.vas.dias at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/54179] New: please split insn-emit.c ! Date: Sun, 05 Aug 2012 11:05:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Keywords: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: jason.vas.dias at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2012-08/txt/msg00234.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54179 Bug #: 54179 Summary: please split insn-emit.c ! Classification: Unclassified Product: gcc Version: lto Status: UNCONFIRMED Severity: enhancement Priority: P3 Component: c AssignedTo: unassigned@gcc.gnu.org ReportedBy: jason.vas.dias@gmail.com I've been attempting to build a "C" only bootstrap 4.7.1 compiler on x86_64 Linux. Building the Stage1 and Stage2 compilers takes @ 8 hours on my 2.2Ghz machine - which I have to continually cycle down to 800Mhz for 2 seconds every 8 seconds with a script under Linux 3.4.4, otherwise I get overheating emergency reboots - nice! But with -lto enabled, the build of Stage 3 compiler gets to trying to build insn-emit.c , but has not yet completed given a previous two-day run - during which I have to be careful not to do any extra activity which might tip the machine past the 105 degree emergency reboot trip-point - so basically I have to lock up my laptop in a freezer for 3-days plus in order to build gcc : $ ps -lp $(pgrep cc1) F S UID PID PPID C PRI NI ADDR SZ WCHAN TTY TIME CMD 0 R 0 3863 3862 99 80 0 - 64611 - pts/5 20:43:01 cc1 $ tr '\0' ' ' < /proc/3863/cmdline /mnt/sda3/gcc/./prev-gcc/cc1 -quiet -I . -I . -I /usr/build2/gcc/gcc-4.7.1/gcc -I /usr/build2/gcc/gcc-4.7.1/gcc/. -I /usr/build2/gcc/gcc-4.7.1/gcc/../include -I /usr/build2/gcc/gcc-4.7.1/gcc/../libcpp/include -I /usr/build2/gcc/gcc-4.7.1/gcc/../libdecnumber -I /usr/build2/gcc/gcc-4.7.1/gcc/../libdecnumber/bid -I ../libdecnumber -iprefix /mnt/sda3/gcc/prev-gcc/../lib64/gcc/x86_64-pc-linux-gnu/4.7.1/ -isystem /mnt/sda3/gcc/./prev-gcc/include -isystem /mnt/sda3/gcc/./prev-gcc/include-fixed -D IN_GCC -D HAVE_CONFIG_H -isystem /usr/x86_64-pc-linux-gnu/include -isystem /usr/x86_64-pc-linux-gnu/sys-include insn-emit.c -quiet -dumpbase insn-emit.c -mtune=k8 -march=x86-64 -auxbase-strip insn-emit.o -g -gtoggle -O2 -Wextra -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Wold-style-definition -Wc++-compat -o /tmp/ccgsb5Pk.s $ ls -l /mnt/sda3/gcc/gcc/insn-emit.c -rw-r--r-- 1 root devel 1793209 Jul 22 22:13 /mnt/sda3/gcc/gcc/insn-emit.c $ ls -l /tmp/ccgsb5Pk.s -rw------- 1 root root 1101824 Aug 5 11:00 /tmp/ccgsb5Pk.s $ cat /proc/3863/map $ cat /proc/3863/maps | wc -l 5310 Wow, that's alot of maps ! 00400000-05c20000 r-xp 00000000 08:03 132489 /mnt/sda3/gcc/prev-gcc/cc1 05e1f000-05e2b000 rw-p 0581f000 08:03 132489 /mnt/sda3/gcc/prev-gcc/cc1 7fd59f821000-7fd59f836000 r-xp 00000000 08:03 135449 /mnt/sda3/gcc/prev-gcc/libgcc_s.so.1 7fd59f836000-7fd59fa35000 ---p 00015000 08:03 135449 /mnt/sda3/gcc/prev-gcc/libgcc_s.so.1 7fd59fa35000-7fd59fa36000 rw-p 00014000 08:03 135449 /mnt/sda3/gcc/prev-gcc/libgcc_s.so.1 7fd59fa36000-7fd59fb2e000 r-xp 00000000 08:06 772762 /lib64/libm-2.16.so 7fd59fb2e000-7fd59fd2d000 ---p 000f8000 08:06 772762 /lib64/libm-2.16.so 7fd59fd2d000-7fd59fd2e000 r--p 000f7000 08:06 772762 /lib64/libm-2.16.so 7fd59fd2e000-7fd59fd2f000 rw-p 000f8000 08:06 772762 /lib64/libm-2.16.so 7fd59fd2f000-7fd59fe13000 r-xp 00000000 08:06 184127 /usr/lib64/gcc/x86_64-pc-linux-gnu/4.6.0/libstdc++.so.6.0.15 7fd59fe13000-7fd5a0013000 ---p 000e4000 08:06 184127 /usr/lib64/gcc/x86_64-pc-linux-gnu/4.6.0/libstdc++.so.6.0.15 7fd5a0013000-7fd5a001b000 r--p 000e4000 08:06 184127 /usr/lib64/gcc/x86_64-pc-linux-gnu/4.6.0/libstdc++.so.6.0.15 7fd5a001b000-7fd5a001d000 rw-p 000ec000 08:06 184127 /usr/lib64/gcc/x86_64-pc-linux-gnu/4.6.0/libstdc++.so.6.0.15 7fd5a0032000-7fd5a0063000 r-xp 00000000 08:06 147372 /usr/lib64/libpolylib64.so.8.1.0 7fd5a0063000-7fd5a0263000 ---p 00031000 08:06 147372 /usr/lib64/libpolylib64.so.8.1.0 7fd5a0263000-7fd5a0264000 rw-p 00031000 08:06 147372 /usr/lib64/libpolylib64.so.8.1.0 7fd5a0268000-7fd5a0405000 r-xp 00000000 08:06 868371 /lib64/libc-2.16.so 7fd5a0405000-7fd5a0604000 ---p 0019d000 08:06 868371 /lib64/libc-2.16.so 7fd5a0604000-7fd5a0608000 r--p 0019c000 08:06 868371 /lib64/libc-2.16.so 7fd5a0608000-7fd5a060a000 rw-p 001a0000 08:06 868371 /lib64/libc-2.16.so 7fd5a060e000-7fd5a0626000 r-xp 00000000 08:06 150900 /usr/lib64/libz.so.1.2.5 7fd5a0626000-7fd5a0825000 ---p 00018000 08:06 150900 /usr/lib64/libz.so.1.2.5 7fd5a0825000-7fd5a0826000 rw-p 00017000 08:06 150900 /usr/lib64/libz.so.1.2.5 7fd5a0826000-7fd5a0828000 r-xp 00000000 08:06 772761 /lib64/libdl-2.16.so 7fd5a0828000-7fd5a0a28000 ---p 00002000 08:06 772761 /lib64/libdl-2.16.so 7fd5a0a28000-7fd5a0a29000 r--p 00002000 08:06 772761 /lib64/libdl-2.16.so 7fd5a0a29000-7fd5a0a2a000 rw-p 00003000 08:06 772761 /lib64/libdl-2.16.so 7fd5a0a2a000-7fd5a0a8c000 r-xp 00000000 08:06 155396 /usr/lib64/libgmp.so.10.0.4 7fd5a0a8c000-7fd5a0c8c000 ---p 00062000 08:06 155396 /usr/lib64/libgmp.so.10.0.4 7fd5a0c8c000-7fd5a0c95000 rw-p 00062000 08:06 155396 /usr/lib64/libgmp.so.10.0.4 7fd5a0c95000-7fd5a0ceb000 r-xp 00000000 08:06 154706 /usr/lib64/libmpfr.so.4.1.0 7fd5a0ceb000-7fd5a0eea000 ---p 00056000 08:06 154706 /usr/lib64/libmpfr.so.4.1.0 7fd5a0eea000-7fd5a0eec000 rw-p 00055000 08:06 154706 /usr/lib64/libmpfr.so.4.1.0 7fd5a0eec000-7fd5a0efe000 r-xp 00000000 08:06 151501 /usr/lib64/libmpc.so.2.0.0 7fd5a0efe000-7fd5a10fe000 ---p 00012000 08:06 151501 /usr/lib64/libmpc.so.2.0.0 7fd5a10fe000-7fd5a10ff000 rw-p 00012000 08:06 151501 /usr/lib64/libmpc.so.2.0.0 7fd5a10ff000-7fd5a1102000 r-xp 00000000 08:06 155397 /usr/lib64/libgmpxx.so.4.2.4 7fd5a1102000-7fd5a1302000 ---p 00003000 08:06 155397 /usr/lib64/libgmpxx.so.4.2.4 7fd5a1302000-7fd5a1303000 rw-p 00003000 08:06 155397 /usr/lib64/libgmpxx.so.4.2.4 7fd5a1304000-7fd5a1308000 r-xp 00000000 08:06 152307 /usr/lib64/libpwl.so.5.0.0 7fd5a1308000-7fd5a1507000 ---p 00004000 08:06 152307 /usr/lib64/libpwl.so.5.0.0 7fd5a1507000-7fd5a1508000 rw-p 00003000 08:06 152307 /usr/lib64/libpwl.so.5.0.0 7fd5a1508000-7fd5a15ee000 r-xp 00000000 08:06 152313 /usr/lib64/libppl.so.9.0.0 7fd5a15ee000-7fd5a17ee000 ---p 000e6000 08:06 152313 /usr/lib64/libppl.so.9.0.0 7fd5a17ee000-7fd5a17f1000 rw-p 000e6000 08:06 152313 /usr/lib64/libppl.so.9.0.0 7fd5a17f1000-7fd5a1cdf000 r-xp 00000000 08:06 180199 /usr/lib64/libppl_c.so.4.0.0 7fd5a1cdf000-7fd5a1ede000 ---p 004ee000 08:06 180199 /usr/lib64/libppl_c.so.4.0.0 7fd5a1ede000-7fd5a1ee3000 rw-p 004ed000 08:06 180199 /usr/lib64/libppl_c.so.4.0.0 7fd5a1ee4000-7fd5a1f03000 r-xp 00000000 08:06 147395 /usr/lib64/libcloog.so.0.0.0 7fd5a1f03000-7fd5a2102000 ---p 0001f000 08:06 147395 /usr/lib64/libcloog.so.0.0.0 7fd5a2102000-7fd5a2103000 rw-p 0001e000 08:06 147395 /usr/lib64/libcloog.so.0.0.0 7fd5a2105000-7fd5a2126000 r-xp 00000000 08:06 998045 /lib64/ld-2.16.so 7fd5a2326000-7fd5a2327000 r--p 00021000 08:06 998045 /lib64/ld-2.16.so 7fd5a2327000-7fd5a2328000 rw-p 00022000 08:06 998045 /lib64/ld-2.16.so