public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/51551] New: tree-loop-optimize chews all memory
@ 2011-12-14 15:22 gjl at gcc dot gnu.org
2011-12-14 15:23 ` [Bug tree-optimization/51551] " gjl at gcc dot gnu.org
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: gjl at gcc dot gnu.org @ 2011-12-14 15:22 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51551
Bug #: 51551
Summary: tree-loop-optimize chews all memory
Classification: Unclassified
Product: gcc
Version: 4.6.2
Status: UNCONFIRMED
Keywords: memory-hog
Severity: normal
Priority: P3
Component: tree-optimization
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: gjl@gcc.gnu.org
Host: i686-pc-linux-gnu
Target: i686-pc-linux-gnu
Build: i686-pc-linux-gnu
Created attachment 26082
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=26082
bug-loop.c
The test program attached don't finish compilation and gcc is entering infinite
loop that chews up all of memory.
Compile with:
$ gcc bug-loop.c -S -Os
Following works:
$ gcc bug-loop.c -S -O2
$ gcc bug-loop.c -S -Os -fno-tree-loop-optimize
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug tree-optimization/51551] tree-loop-optimize chews all memory
2011-12-14 15:22 [Bug tree-optimization/51551] New: tree-loop-optimize chews all memory gjl at gcc dot gnu.org
@ 2011-12-14 15:23 ` gjl at gcc dot gnu.org
2011-12-14 16:38 ` rguenth at gcc dot gnu.org
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: gjl at gcc dot gnu.org @ 2011-12-14 15:23 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51551
--- Comment #1 from Georg-Johann Lay <gjl at gcc dot gnu.org> 2011-12-14 15:21:45 UTC ---
Created attachment 26083
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=26083
Compiler output with -v
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug tree-optimization/51551] tree-loop-optimize chews all memory
2011-12-14 15:22 [Bug tree-optimization/51551] New: tree-loop-optimize chews all memory gjl at gcc dot gnu.org
2011-12-14 15:23 ` [Bug tree-optimization/51551] " gjl at gcc dot gnu.org
@ 2011-12-14 16:38 ` rguenth at gcc dot gnu.org
2011-12-26 17:08 ` mikpe at it dot uu.se
2021-12-12 9:04 ` pinskia at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-12-14 16:38 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51551
Richard Guenther <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2011-12-14
Known to work| |4.7.0
Ever Confirmed|0 |1
--- Comment #2 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-12-14 16:36:12 UTC ---
It's complete unrolling (a known culprit). 4.7 works for some reason,
maybe because I fixed loop invariant motion (who knows ;)
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug tree-optimization/51551] tree-loop-optimize chews all memory
2011-12-14 15:22 [Bug tree-optimization/51551] New: tree-loop-optimize chews all memory gjl at gcc dot gnu.org
2011-12-14 15:23 ` [Bug tree-optimization/51551] " gjl at gcc dot gnu.org
2011-12-14 16:38 ` rguenth at gcc dot gnu.org
@ 2011-12-26 17:08 ` mikpe at it dot uu.se
2021-12-12 9:04 ` pinskia at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: mikpe at it dot uu.se @ 2011-12-26 17:08 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51551
Mikael Pettersson <mikpe at it dot uu.se> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |mikpe at it dot uu.se
--- Comment #3 from Mikael Pettersson <mikpe at it dot uu.se> 2011-12-26 16:51:40 UTC ---
This test case was fixed on trunk by r171465:
http://gcc.gnu.org/ml/gcc-patches/2011-03/msg01765.html
http://gcc.gnu.org/ml/gcc-cvs/2011-03/msg00889.html
However r171465 caused PR48290, so a backport also needs the two PR48290 fixes
(r171657 + r172494). With all three backported to 4.6.2 the test case is fixed
there too with no test suite regressions for me on i686-linux.
But this may be a too large change for the upstream 4.6 branch.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug tree-optimization/51551] tree-loop-optimize chews all memory
2011-12-14 15:22 [Bug tree-optimization/51551] New: tree-loop-optimize chews all memory gjl at gcc dot gnu.org
` (2 preceding siblings ...)
2011-12-26 17:08 ` mikpe at it dot uu.se
@ 2021-12-12 9:04 ` pinskia at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-12-12 9:04 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=51551
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |FIXED
Target Milestone|--- |4.7.0
Status|NEW |RESOLVED
--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Closing as fixed in GCC 4.7.0. Propagating constants earlier does decrease
memory usage.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2021-12-12 9:04 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-12-14 15:22 [Bug tree-optimization/51551] New: tree-loop-optimize chews all memory gjl at gcc dot gnu.org
2011-12-14 15:23 ` [Bug tree-optimization/51551] " gjl at gcc dot gnu.org
2011-12-14 16:38 ` rguenth at gcc dot gnu.org
2011-12-26 17:08 ` mikpe at it dot uu.se
2021-12-12 9:04 ` pinskia at gcc dot gnu.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).