From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5815 invoked by alias); 14 Jul 2009 11:31:15 -0000 Received: (qmail 5775 invoked by uid 48); 14 Jul 2009 11:31:02 -0000 Date: Tue, 14 Jul 2009 11:31:00 -0000 Message-ID: <20090714113102.5774.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug target/40735] [4.3/4.4 regression] memory hog compiling big functions with -fPIE In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "rguenth at gcc dot gnu dot org" 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: 2009-07/txt/msg01104.txt.bz2 ------- Comment #4 from rguenth at gcc dot gnu dot org 2009-07-14 11:31 ------- This is likely caused by the DF merge. There are numerous bugs about this already and nothing really can be done here. Btw, my numbers are rguenther@murzim:/tmp> ~/bin/maxmem2.sh gcc-4.4 -S -o /dev/null -g -fstack-protector -fPIE -Os test_node.i -std=gnu99 total: 744108 kB rguenther@murzim:/tmp> ~/bin/maxmem2.sh gcc-4.3 -S -o /dev/null -g -fstack-protector -fPIE -Os test_node.i -std=gnu99 total: 719836 kB rguenther@murzim:/tmp> ~/bin/maxmem2.sh gcc-4.2 -S -o /dev/null -g -fstack-protector -fPIE -Os test_node.i -std=gnu99 total: 459757 kB Thus not 1.5GB but 750MB vs 450MB. rguenther@murzim:/tmp> ~/bin/maxmem2.sh gcc-4.4 -S -o /dev/null -fPIE -Os test_node.i -std=gnu99 total: 743380 kB rguenther@murzim:/tmp> ~/bin/maxmem2.sh gcc-4.4 -S -o /dev/null -Os test_node.i -std=gnu99 total: 630756 kB the -fPIE effect itself is even less recognizable. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40735