public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/40735] New: [4.3/4.4 regression] memory hog compiling big functions with -fPIE
@ 2009-07-13 19:37 doko at ubuntu dot com
2009-07-13 19:37 ` [Bug target/40735] " doko at ubuntu dot com
` (12 more replies)
0 siblings, 13 replies; 14+ messages in thread
From: doko at ubuntu dot com @ 2009-07-13 19:37 UTC (permalink / raw)
To: gcc-bugs
[forwarded from https://launchpad.net/bugs/398403]
Building the attached file with gcc from the 4.4 branch with -g
-fstack-protector -fPIE -Os, the build fails (killed by oom), last info seen is
memory usage of about 1500mb. Building without -fPIE memory usage is limited
around 700MB.
Same behaviour for 4.3. With gcc-4.2 peak memory usage is with/without -fPIE
below 400MB. Not checked on trunk, currently fails to build.
--
Summary: [4.3/4.4 regression] memory hog compiling big functions
with -fPIE
Product: gcc
Version: 4.4.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: target
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: doko at ubuntu dot com
GCC target triplet: arm-linux-gnueabi
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40735
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug target/40735] [4.3/4.4 regression] memory hog compiling big functions with -fPIE
2009-07-13 19:37 [Bug target/40735] New: [4.3/4.4 regression] memory hog compiling big functions with -fPIE doko at ubuntu dot com
@ 2009-07-13 19:37 ` doko at ubuntu dot com
2009-07-14 9:21 ` rguenth at gcc dot gnu dot org
` (11 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: doko at ubuntu dot com @ 2009-07-13 19:37 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from doko at ubuntu dot com 2009-07-13 19:37 -------
Created an attachment (id=18188)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=18188&action=view)
preprocessed source
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40735
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug target/40735] [4.3/4.4 regression] memory hog compiling big functions with -fPIE
2009-07-13 19:37 [Bug target/40735] New: [4.3/4.4 regression] memory hog compiling big functions with -fPIE doko at ubuntu dot com
2009-07-13 19:37 ` [Bug target/40735] " doko at ubuntu dot com
@ 2009-07-14 9:21 ` rguenth at gcc dot gnu dot org
2009-07-14 10:31 ` doko at ubuntu dot com
` (10 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-07-14 9:21 UTC (permalink / raw)
To: gcc-bugs
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1343 bytes --]
------- Comment #2 from rguenth at gcc dot gnu dot org 2009-07-14 09:20 -------
I cannot compile the attached testcase.
gcc-4.2 -S -o /dev/null -g -fstack-protector -fPIE -Os test_node.i -std=c99
In file included from ../nih/test_alloc.h:32,
from ../nih/test.h:36,
from tests/test_node.c:23:
../nih/list.h:110: warning: declaration does not declare anything
In file included from tests/test_node.c:40:
./parse.h:71: warning: declaration does not declare anything
tests/test_node.c: In function test_start_tag:
tests/test_node.c:211: error: ParseStack has no member named node
tests/test_node.c:251: error: ParseStack has no member named node
tests/test_node.c:297: error: ParseStack has no member named data
tests/test_node.c:297: error: ParseStack has no member named data
tests/test_node.c:365: error: ParseStack has no member named node
tests/test_node.c:422: error: ParseStack has no member named data
tests/test_node.c:422: error: ParseStack has no member named data
tests/test_node.c: In function test_object_functions:
tests/test_node.c:1256: error: NihListEntry has no member named str
tests/test_node.c:1256: error: NihListEntry has no member named str
...
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40735
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug target/40735] [4.3/4.4 regression] memory hog compiling big functions with -fPIE
2009-07-13 19:37 [Bug target/40735] New: [4.3/4.4 regression] memory hog compiling big functions with -fPIE doko at ubuntu dot com
2009-07-13 19:37 ` [Bug target/40735] " doko at ubuntu dot com
2009-07-14 9:21 ` rguenth at gcc dot gnu dot org
@ 2009-07-14 10:31 ` doko at ubuntu dot com
2009-07-14 11:31 ` rguenth at gcc dot gnu dot org
` (9 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: doko at ubuntu dot com @ 2009-07-14 10:31 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from doko at ubuntu dot com 2009-07-14 10:31 -------
my bad, should be -std=gnu99 instead: gcc-4.2 -S -o /dev/null -g
-fstack-protector -fPIE -Os test_node.i -std=gnu99
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40735
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug target/40735] [4.3/4.4 regression] memory hog compiling big functions with -fPIE
2009-07-13 19:37 [Bug target/40735] New: [4.3/4.4 regression] memory hog compiling big functions with -fPIE doko at ubuntu dot com
` (2 preceding siblings ...)
2009-07-14 10:31 ` doko at ubuntu dot com
@ 2009-07-14 11:31 ` rguenth at gcc dot gnu dot org
2009-07-14 23:07 ` mikpe at it dot uu dot se
` (8 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-07-14 11:31 UTC (permalink / raw)
To: gcc-bugs
------- 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
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug target/40735] [4.3/4.4 regression] memory hog compiling big functions with -fPIE
2009-07-13 19:37 [Bug target/40735] New: [4.3/4.4 regression] memory hog compiling big functions with -fPIE doko at ubuntu dot com
` (3 preceding siblings ...)
2009-07-14 11:31 ` rguenth at gcc dot gnu dot org
@ 2009-07-14 23:07 ` mikpe at it dot uu dot se
2009-07-14 23:10 ` pinskia at gcc dot gnu dot org
` (7 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: mikpe at it dot uu dot se @ 2009-07-14 23:07 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from mikpe at it dot uu dot se 2009-07-14 23:07 -------
Seems heavily target-dependent. With 4.3.4 I see peak usage of 640M for i686,
just under 1.2G for powerpc, and 1.6G for arm.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40735
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug target/40735] [4.3/4.4 regression] memory hog compiling big functions with -fPIE
2009-07-13 19:37 [Bug target/40735] New: [4.3/4.4 regression] memory hog compiling big functions with -fPIE doko at ubuntu dot com
` (4 preceding siblings ...)
2009-07-14 23:07 ` mikpe at it dot uu dot se
@ 2009-07-14 23:10 ` pinskia at gcc dot gnu dot org
2009-07-14 23:33 ` mikpe at it dot uu dot se
` (6 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2009-07-14 23:10 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from pinskia at gcc dot gnu dot org 2009-07-14 23:10 -------
Hmm, maybe scheduling is causing it. Does -fno-schedule-insns
-fno-schedule-insns2 cause the memory usage to go down?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40735
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug target/40735] [4.3/4.4 regression] memory hog compiling big functions with -fPIE
2009-07-13 19:37 [Bug target/40735] New: [4.3/4.4 regression] memory hog compiling big functions with -fPIE doko at ubuntu dot com
` (5 preceding siblings ...)
2009-07-14 23:10 ` pinskia at gcc dot gnu dot org
@ 2009-07-14 23:33 ` mikpe at it dot uu dot se
2009-07-15 7:34 ` steven at gcc dot gnu dot org
` (5 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: mikpe at it dot uu dot se @ 2009-07-14 23:33 UTC (permalink / raw)
To: gcc-bugs
------- Comment #7 from mikpe at it dot uu dot se 2009-07-14 23:33 -------
(In reply to comment #6)
> Hmm, maybe scheduling is causing it. Does -fno-schedule-insns
> -fno-schedule-insns2 cause the memory usage to go down?
Nope, memory usage patterns stayed the same.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40735
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug target/40735] [4.3/4.4 regression] memory hog compiling big functions with -fPIE
2009-07-13 19:37 [Bug target/40735] New: [4.3/4.4 regression] memory hog compiling big functions with -fPIE doko at ubuntu dot com
` (6 preceding siblings ...)
2009-07-14 23:33 ` mikpe at it dot uu dot se
@ 2009-07-15 7:34 ` steven at gcc dot gnu dot org
2009-07-15 9:44 ` rguenth at gcc dot gnu dot org
` (4 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: steven at gcc dot gnu dot org @ 2009-07-15 7:34 UTC (permalink / raw)
To: gcc-bugs
------- Comment #8 from steven at gcc dot gnu dot org 2009-07-15 07:34 -------
Does seem to be a real issue, somewhere.
When trunk builds again, can you please give it a try too?
--
steven at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2009-07-15 07:34:32
date| |
Target Milestone|--- |4.3.5
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40735
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug target/40735] [4.3/4.4 regression] memory hog compiling big functions with -fPIE
2009-07-13 19:37 [Bug target/40735] New: [4.3/4.4 regression] memory hog compiling big functions with -fPIE doko at ubuntu dot com
` (7 preceding siblings ...)
2009-07-15 7:34 ` steven at gcc dot gnu dot org
@ 2009-07-15 9:44 ` rguenth at gcc dot gnu dot org
2009-07-16 18:33 ` mikpe at it dot uu dot se
` (3 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-07-15 9:44 UTC (permalink / raw)
To: gcc-bugs
------- Comment #9 from rguenth at gcc dot gnu dot org 2009-07-15 09:44 -------
DF time on this testcase is already big, and the testcase has lots of function
calls which would explain the difference between targets (DF needs to track all
call-used/clobbered regs).
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40735
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug target/40735] [4.3/4.4 regression] memory hog compiling big functions with -fPIE
2009-07-13 19:37 [Bug target/40735] New: [4.3/4.4 regression] memory hog compiling big functions with -fPIE doko at ubuntu dot com
` (8 preceding siblings ...)
2009-07-15 9:44 ` rguenth at gcc dot gnu dot org
@ 2009-07-16 18:33 ` mikpe at it dot uu dot se
2009-07-22 21:57 ` [Bug target/40735] [4.3/4.4/4.5 Regression] " rguenth at gcc dot gnu dot org
` (2 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: mikpe at it dot uu dot se @ 2009-07-16 18:33 UTC (permalink / raw)
To: gcc-bugs
------- Comment #10 from mikpe at it dot uu dot se 2009-07-16 18:33 -------
More memory usage numbers on this test case:
With 4.4.1-RC-20090715: i686 peaks at 616M, powerpc at 799M, and arm at 1211M.
With 4.5.0-20090709: i686 peaks at 530M, powerpc at 707M, and arm at 933M.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40735
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug target/40735] [4.3/4.4/4.5 Regression] memory hog compiling big functions with -fPIE
2009-07-13 19:37 [Bug target/40735] New: [4.3/4.4 regression] memory hog compiling big functions with -fPIE doko at ubuntu dot com
` (9 preceding siblings ...)
2009-07-16 18:33 ` mikpe at it dot uu dot se
@ 2009-07-22 21:57 ` rguenth at gcc dot gnu dot org
2009-08-04 12:51 ` rguenth at gcc dot gnu dot org
2010-05-22 18:33 ` [Bug target/40735] [4.3/4.4/4.5/4.6 " rguenth at gcc dot gnu dot org
12 siblings, 0 replies; 14+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-07-22 21:57 UTC (permalink / raw)
To: gcc-bugs
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |memory-hog
Priority|P3 |P2
Summary|[4.3/4.4 regression] memory|[4.3/4.4/4.5 Regression]
|hog compiling big functions |memory hog compiling big
|with -fPIE |functions with -fPIE
Target Milestone|4.3.5 |4.3.4
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40735
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug target/40735] [4.3/4.4/4.5 Regression] memory hog compiling big functions with -fPIE
2009-07-13 19:37 [Bug target/40735] New: [4.3/4.4 regression] memory hog compiling big functions with -fPIE doko at ubuntu dot com
` (10 preceding siblings ...)
2009-07-22 21:57 ` [Bug target/40735] [4.3/4.4/4.5 Regression] " rguenth at gcc dot gnu dot org
@ 2009-08-04 12:51 ` rguenth at gcc dot gnu dot org
2010-05-22 18:33 ` [Bug target/40735] [4.3/4.4/4.5/4.6 " rguenth at gcc dot gnu dot org
12 siblings, 0 replies; 14+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-08-04 12:51 UTC (permalink / raw)
To: gcc-bugs
------- Comment #11 from rguenth at gcc dot gnu dot org 2009-08-04 12:30 -------
GCC 4.3.4 is being released, adjusting target milestone.
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|4.3.4 |4.3.5
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40735
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug target/40735] [4.3/4.4/4.5/4.6 Regression] memory hog compiling big functions with -fPIE
2009-07-13 19:37 [Bug target/40735] New: [4.3/4.4 regression] memory hog compiling big functions with -fPIE doko at ubuntu dot com
` (11 preceding siblings ...)
2009-08-04 12:51 ` rguenth at gcc dot gnu dot org
@ 2010-05-22 18:33 ` rguenth at gcc dot gnu dot org
12 siblings, 0 replies; 14+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-05-22 18:33 UTC (permalink / raw)
To: gcc-bugs
------- Comment #12 from rguenth at gcc dot gnu dot org 2010-05-22 18:13 -------
GCC 4.3.5 is being released, adjusting target milestone.
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|4.3.5 |4.3.6
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40735
^ permalink raw reply [flat|nested] 14+ messages in thread
end of thread, other threads:[~2010-05-22 18:33 UTC | newest]
Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-07-13 19:37 [Bug target/40735] New: [4.3/4.4 regression] memory hog compiling big functions with -fPIE doko at ubuntu dot com
2009-07-13 19:37 ` [Bug target/40735] " doko at ubuntu dot com
2009-07-14 9:21 ` rguenth at gcc dot gnu dot org
2009-07-14 10:31 ` doko at ubuntu dot com
2009-07-14 11:31 ` rguenth at gcc dot gnu dot org
2009-07-14 23:07 ` mikpe at it dot uu dot se
2009-07-14 23:10 ` pinskia at gcc dot gnu dot org
2009-07-14 23:33 ` mikpe at it dot uu dot se
2009-07-15 7:34 ` steven at gcc dot gnu dot org
2009-07-15 9:44 ` rguenth at gcc dot gnu dot org
2009-07-16 18:33 ` mikpe at it dot uu dot se
2009-07-22 21:57 ` [Bug target/40735] [4.3/4.4/4.5 Regression] " rguenth at gcc dot gnu dot org
2009-08-04 12:51 ` rguenth at gcc dot gnu dot org
2010-05-22 18:33 ` [Bug target/40735] [4.3/4.4/4.5/4.6 " rguenth at gcc dot gnu dot org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).