[Bug middle-end/41956] Segmentation fault when called by mpicc

2009-12-29 Thread fxcoudert at gcc dot gnu dot org


--- Comment #6 from fxcoudert at gcc dot gnu dot org  2009-12-29 17:42 
---
I can confirm the segfault at -O3 with current trunk (rev. 155505) on
x86_64-apple-darwin10.2.0. I also generated a (much) reduced testcase:


void K (int *gpwgts, int *badminpwgt, int *badmaxpwgt)
{
  int i;
  for (i = 0; i  10; i += 2) {
badminpwgt[i] = badminpwgt[i+1] = gpwgts[i]+gpwgts[i];
badmaxpwgt[i] = badmaxpwgt[i+1] = gpwgts[i]+gpwgts[i];
  }
}



 The segfault backtrace is:

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: 13 at address: 0x
vect_analyze_slp (loop_vinfo=value temporarily unavailable, due to
optimizations, bb_vinfo=value temporarily unavailable, due to optimizations)
at gimple.h:33
33  DEF_VEC_P(gimple);
(gdb) bt
#0  vect_analyze_slp (loop_vinfo=value temporarily unavailable, due to
optimizations, bb_vinfo=value temporarily unavailable, due to optimizations)
at gimple.h:33
#1  0x0001007bce67 in vect_analyze_loop (loop=value temporarily
unavailable, due to optimizations) at ../../trunk/gcc/tree-vect-loop.c:1433
#2  0x0001007ca08a in vectorize_loops () at
../../trunk/gcc/tree-vectorizer.c:219
#3  0x00010058d7ae in execute_one_pass (pass=0x100c3ca00) at
../../trunk/gcc/passes.c:1561
#4  0x00010058da7d in execute_pass_list (pass=0x100c3ca00) at
../../trunk/gcc/passes.c:1616
#5  0x00010058da8f in execute_pass_list (pass=0x100c3c820) at
../../trunk/gcc/passes.c:1617
#6  0x00010058da8f in execute_pass_list (pass=0x100c3be60) at
../../trunk/gcc/passes.c:1617
#7  0x0001006b86e8 in tree_rest_of_compilation (fndecl=0x141609900) at
../../trunk/gcc/tree-optimize.c:413
#8  0x0001008731e3 in cgraph_expand_function (node=value temporarily
unavailable, due to optimizations) at ../../trunk/gcc/cgraphunit.c:1544
#9  0x0001008760da in cgraph_optimize () at
../../trunk/gcc/cgraphunit.c:1623
#10 0x0001008766bd in cgraph_finalize_compilation_unit () at
../../trunk/gcc/cgraphunit.c:1093
#11 0x00010001f2a2 in c_write_global_declarations () at
../../trunk/gcc/c-decl.c:9490
#12 0x00010064e322 in toplev_main (argc=4, argv=0x7fff5fbff5d0) at
../../trunk/gcc/toplev.c:1061
#13 0x000108b4 in start ()


-- 

fxcoudert at gcc dot gnu dot org changed:

   What|Removed |Added

 CC||fxcoudert at gcc dot gnu dot
   ||org
 Status|UNCONFIRMED |NEW
 Ever Confirmed|0   |1
   Keywords||ice-on-valid-code
  Known to fail||4.5.0
   Last reconfirmed|-00-00 00:00:00 |2009-12-29 17:42:02
   date||


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



[Bug middle-end/41956] Segmentation fault when called by mpicc

2009-11-06 Thread rguenth at gcc dot gnu dot org


--- Comment #5 from rguenth at gcc dot gnu dot org  2009-11-06 10:06 ---
hm, works for me.


-- 


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



[Bug middle-end/41956] Segmentation fault when called by mpicc

2009-11-05 Thread pinskia at gcc dot gnu dot org


--- Comment #3 from pinskia at gcc dot gnu dot org  2009-11-05 20:39 ---

Using built-in specs.
Target: x86_64-apple-darwin10
Configured with: ../gcc-4.5-20090910/configure --enable-languages=fortran,c++
--host=x86_64-apple-darwin10 --build=x86_64-apple-darwin10
Thread model: posix
gcc version 4.5.0 20090910 (experimental) (GCC) 


-- 

pinskia at gcc dot gnu dot org changed:

   What|Removed |Added

  Component|c   |middle-end
 GCC target triplet||x86_64-apple-darwin10
Version|4.2.1   |4.5.0


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



[Bug middle-end/41956] Segmentation fault when called by mpicc

2009-11-05 Thread pinskia at gcc dot gnu dot org


--- Comment #4 from pinskia at gcc dot gnu dot org  2009-11-05 20:40 ---
This is likely a dup of bug 41891.


-- 


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