[Bug tree-optimization/17340] [4.0 Regression] Internal error compiling with -O3

2004-12-07 Thread steven at gcc dot gnu dot org

--- Additional Comments From steven at gcc dot gnu dot org  2004-12-08 
00:54 ---
The rest of this bug goes away when I do this: 
 
Index: global.c 
=== 
RCS file: /cvs/gcc/gcc/gcc/global.c,v 
retrieving revision 1.118 
diff -u -3 -p -r1.118 global.c 
--- global.c25 Nov 2004 09:30:03 -  1.118 
+++ global.c8 Dec 2004 00:48:59 - 
@@ -344,7 +344,9 @@ global_alloc (FILE *file) 
   size_t i; 
   rtx x; 
 
+#if 0 
   make_accurate_live_analysis (); 
+#endif 
 
   max_allocno = 0; 
 
Since I have no idea what this "make_accurate_live_analysis ()" tries 
to achieve, or how, I'll leave this for someone else to look at.  But my 
personal feeling is that this "feature" should be turned off at least at 
"-O1", because we see "make_accurate_live_analysis ()" show up on profiles 
way too often, and now it also blows up GCC until it runs out of memory. 
 
The motivation for "make_accurate_live_analysis ()" is here: 
http://gcc.gnu.org/ml/gcc-patches/2004-05/msg01038.html. 
 
 
 
 

-- 
   What|Removed |Added

 CC||vmakarov at redhat dot com


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


[Bug tree-optimization/17340] [4.0 Regression] Internal error compiling with -O3

2004-12-07 Thread steven at gcc dot gnu dot org

--- Additional Comments From steven at gcc dot gnu dot org  2004-12-08 
00:32 ---
(From update of attachment 7697)
Applied


-- 
   What|Removed |Added

Attachment #7697 is|0   |1
   obsolete||


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


[Bug tree-optimization/17340] [4.0 Regression] Internal error compiling with -O3

2004-12-07 Thread cvs-commit at gcc dot gnu dot org

--- Additional Comments From cvs-commit at gcc dot gnu dot org  2004-12-08 
00:09 ---
Subject: Bug 17340

CVSROOT:/cvs/gcc
Module name:gcc
Changes by: [EMAIL PROTECTED]   2004-12-08 00:09:34

Modified files:
gcc: ChangeLog tree-ssa-pre.c 

Log message:
PR tree-optimization/17340
* tree-ssa-pre.c (compute_antic): Fix comment.
(compute_avail): Do not recurse, instead do a DFS using a stack
and a loop.
(execute_pre): Adjust.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.6737&r2=2.6738
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/tree-ssa-pre.c.diff?cvsroot=gcc&r1=2.58&r2=2.59



-- 


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


[Bug tree-optimization/17340] [4.0 Regression] Internal error compiling with -O3

2004-12-07 Thread steven at gcc dot gnu dot org

--- Additional Comments From steven at gcc dot gnu dot org  2004-12-07 
09:46 ---
When we die in PRE we have a huge number of SSA names too: 
(gdb) p ssa_names->elements_used 
$8 = 159414 
 
GCC just doesn't scale to such sizes.  I wonder how the function could 
grow this large.  Even at "-O2 -fno-inline" we still ICE in global.c with 
n_basic_blocks == 37278 and max_regno == 49402. 
 
 

-- 


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


[Bug tree-optimization/17340] [4.0 Regression] Internal error compiling with -O3

2004-12-07 Thread steven at gcc dot gnu dot org

--- Additional Comments From steven at gcc dot gnu dot org  2004-12-07 
09:40 ---
Not Alpha-specific 

-- 
   What|Removed |Added

  GCC build triplet|alphaev56-unknown-linux-gnu |
   GCC host triplet|alphaev56-unknown-linux-gnu |
 GCC target triplet|alphaev56-unknown-linux-gnu |


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


[Bug tree-optimization/17340] [4.0 Regression] Internal error compiling with -O3

2004-12-07 Thread steven at gcc dot gnu dot org

--- Additional Comments From steven at gcc dot gnu dot org  2004-12-07 
09:40 ---
With "-fno-tree-pre" we still die in global.c, only somewhere else this time: 
 
#0  xmalloc_failed (size=4072) at xmalloc.c:118 
#1  0x007c in xmalloc (size=Variable "size" is not available.) at 
xmalloc.c:145 
#2  0x002a956d8ff7 in _obstack_newchunk () from /lib64/tls/libc.so.6 
#3  0x00505ea6 in bitmap_elt_insert_after (head=0x7fbfffe230, 
elt=0x1b7ade30) at bitmap.c:110 
#4  0x00506f2b in bitmap_and_compl (dst=0x7fbfffe230, a=Variable "a" 
is not available.) at bitmap.c:661 
#5  0x00507017 in bitmap_ior_and_compl (dst=0x4803960, a=0x4803900, 
from1=Variable "from1" is not available.) at bitmap.c:1120 
#6  0x0076628d in make_accurate_live_analysis () at global.c:2307 
#7  0x007663ed in global_alloc (file=0x0) at global.c:347 
#8  0x00713123 in rest_of_compilation () at passes.c:529 
 
Not really surprising, given this: 
(gdb) p max_regno 
$6 = 65597 
 
 

-- 


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


[Bug tree-optimization/17340] [4.0 Regression] Internal error compiling with -O3

2004-12-07 Thread steven at gcc dot gnu dot org

--- Additional Comments From steven at gcc dot gnu dot org  2004-12-07 
09:31 ---
The end of the backtrace looks like this: 
 
#18159 0x004d2ac8 in compute_avail (block=0x2aa7c9f0e0) at 
tree-ssa-pre.c:1866 
#18160 0x004d2ac8 in compute_avail (block=0x2aa7c9de00) at 
tree-ssa-pre.c:1866 
#18161 0x004d2ac8 in compute_avail (block=0x2aa7c9da80) at 
tree-ssa-pre.c:1866 
#18162 0x004d30eb in execute_pre (do_fre=0 '\0') at 
tree-ssa-pre.c:2053 
#18163 0x004baa8f in execute_pass_list (pass=0xa18780) at 
tree-optimize.c:516 
---Type  to continue, or q  to quit--- 
#18164 0x004bab24 in execute_pass_list (pass=0xa18200) at 
tree-optimize.c:554 
#18165 0x004bad29 in tree_rest_of_compilation (fndecl=0x2a9def2e00) at 
tree-optimize.c:652 
#18166 0x00470cf2 in expand_body (fn=0x2a9def2e00) at semantics.c:2901 
#18167 0x00735111 in cgraph_expand_function (node=0x2aa00720e0) at 
cgraphunit.c:822 
#18168 0x00735b1f in cgraph_optimize () at cgraphunit.c:1689 
#18169 0x004407ea in cp_finish_file () at decl2.c:3074 
#18170 0x004a5dca in c_common_parse_file (set_yydebug=Variable 
"set_yydebug" is not available.) at c-opts.c:1093 
#18171 0x006faa4e in toplev_main (argc=Variable "argc" is not 
available.) at toplev.c:992 
 

-- 


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


[Bug tree-optimization/17340] [4.0 Regression] Internal error compiling with -O3

2004-12-07 Thread steven at gcc dot gnu dot org

--- Additional Comments From steven at gcc dot gnu dot org  2004-12-07 
09:28 ---
For the record: 
 
(gdb) p current_function_name () 
$2 = 0x1d8124a0 "int main(int, const char* const*)" 
(gdb) p n_basic_blocks 
$1 = 29662 
 

-- 


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


[Bug tree-optimization/17340] [4.0 Regression] Internal error compiling with -O3

2004-12-07 Thread steven at gcc dot gnu dot org

--- Additional Comments From steven at gcc dot gnu dot org  2004-12-07 
09:27 ---
This dies at "-O1 -fno-inline" when allocating the conflict graph: 
#0  xmalloc_failed (size=142104496) at xmalloc.c:118 
#1  0x007c774b in xcalloc (nelem=Variable "nelem" is not available.) 
at xmalloc.c:161 
#2  0x00766852 in global_alloc (file=0x0) at global.c:526 
#3  0x00713123 in rest_of_compilation () at passes.c:529 
#4  0x004baa8f in execute_pass_list (pass=0xa1c340) at 
tree-optimize.c:516 
#5  0x004bad29 in tree_rest_of_compilation (fndecl=0x2a9def2e00) at 
tree-optimize.c:652 
#6  0x00470cf2 in expand_body (fn=0x2a9def2e00) at semantics.c:2901 
#7  0x00735111 in cgraph_expand_function (node=0x2aa00720e0) at 
cgraphunit.c:822 
 
It *cough* dies somewhere else at "-O2": 
#14001 0x004d2ac8 in compute_avail (block=0x2aa73ccb60) at 
tree-ssa-pre.c:1866 
#14002 0x004d2ac8 in compute_avail (block=0x2aa73cca80) at 
tree-ssa-pre.c:1866 
#14003 0x004d2ac8 in compute_avail (block=0x2aa73cc9a0) at 
tree-ssa-pre.c:1866 
#14004 0x004d2ac8 in compute_avail (block=0x2aa73cc8c0) at 
tree-ssa-pre.c:1866 
#14005 0x004d2ac8 in compute_avail (block=0x2aa73cc7e0) at 
tree-ssa-pre.c:1866 
#14006 0x004d2ac8 in compute_avail (block=0x2aa73cc700) at 
tree-ssa-pre.c:1866 
#14007 0x004d2ac8 in compute_avail (block=0x2aa73cc620) at 
tree-ssa-pre.c:1866 
#14008 0x004d2ac8 in compute_avail (block=0x2aa73cc0e0) at 
tree-ssa-pre.c:1866 
#14009 0x004d2ac8 in compute_avail (block=0x2aa73cc000) at 
tree-ssa-pre.c:1866 
#14010 0x004d2ac8 in compute_avail (block=0x2aa7386ee0) at 
tree-ssa-pre.c:1866 
#14011 0x004d2ac8 in compute_avail (block=0x2aa7386e00) at 
tree-ssa-pre.c:1866 
#14012 0x004d2ac8 in compute_avail (block=0x2aa7386d20) at 
tree-ssa-pre.c:1866 
#14013 0x004d2ac8 in compute_avail (block=0x2aa7386c40) at 
tree-ssa-pre.c:1866 
#14014 0x004d2ac8 in compute_avail (block=0x2aa7386b60) at 
tree-ssa-pre.c:1866 
#14015 0x004d2ac8 in compute_avail (block=0x2aa7386a80) at 
tree-ssa-pre.c:1866 
#14016 0x004d2ac8 in compute_avail (block=0x2aa73869a0) at 
tree-ssa-pre.c:1866 
#14017 0x004d2ac8 in compute_avail (block=0x2aa73868c0) at 
tree-ssa-pre.c:1866 
#14018 0x004d2ac8 in compute_avail (block=0x2aa73867e0) at 
tree-ssa-pre.c:1866 
#14019 0x004d2ac8 in compute_avail (block=0x2aa7386700) at 
tree-ssa-pre.c:1866 
#14020 0x004d2ac8 in compute_avail (block=0x2aa7386620) at 
tree-ssa-pre.c:1866 
#14021 0x004d2ac8 in compute_avail (block=0x2aa73861c0) at 
tree-ssa-pre.c:1866 

-- 
   What|Removed |Added

 CC||dberlin at dberlin dot org


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


[Bug tree-optimization/17340] [4.0 Regression] Internal error compiling with -O3

2004-12-07 Thread steven at gcc dot gnu dot org

--- Additional Comments From steven at gcc dot gnu dot org  2004-12-07 
09:01 ---
This PR makes my 3GB x86-64 box go swapping. 

-- 
   What|Removed |Added

   Last reconfirmed|2004-10-21 21:04:09 |2004-12-07 09:01:24
   date||


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


[Bug tree-optimization/17340] [4.0 Regression] Internal error compiling with -O3

2004-11-15 Thread steven at gcc dot gnu dot org


-- 
   What|Removed |Added

OtherBugsDependingO||18499
  nThis||


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


[Bug tree-optimization/17340] [4.0 Regression] Internal error compiling with -O3

2004-10-21 Thread rth at gcc dot gnu dot org


-- 
   What|Removed |Added

 AssignedTo|unassigned at gcc dot gnu   |rth at gcc dot gnu dot org
   |dot org |
 Status|NEW |ASSIGNED


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


[Bug tree-optimization/17340] [4.0 Regression] Internal error compiling with -O3

2004-10-21 Thread rth at gcc dot gnu dot org

--- Additional Comments From rth at gcc dot gnu dot org  2004-10-21 21:04 ---
I can confirm using >1GB peak memory, and a compile time >76 minutes,
even with inline limit of 100.

-- 
   What|Removed |Added

 Status|WAITING |NEW
 Ever Confirmed||1
   Last reconfirmed|-00-00 00:00:00 |2004-10-21 21:04:09
   date||


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


[Bug tree-optimization/17340] [4.0 Regression] Internal error compiling with -O3

2004-10-21 Thread pinskia at gcc dot gnu dot org

--- Additional Comments From pinskia at gcc dot gnu dot org  2004-10-21 14:50 
---
On poweprc-darwin, I only get about a max of 225Megs used at -O3.

-- 


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