[Bug tree-optimization/20474] ICE while compiling openmotif-2.2.3 with -ftree-vectorize
--- Additional Comments From cvs-commit at gcc dot gnu dot org 2005-03-20 09:18 --- Subject: Bug 20474 CVSROOT:/cvs/gcc Module name:gcc Branch: gcc-4_0-branch Changes by: [EMAIL PROTECTED] 2005-03-20 09:17:57 Modified files: gcc: ChangeLog tree-vect-analyze.c Log message: PR tree-optimization/20474 * tree-vect-analyze.c (vect_analyze_pointer_ref_access): Check the size_type of the relevant pointer. Check for COMPLETE_TYPE_P. Patches: http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=2.7592.2.68&r2=2.7592.2.69 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/tree-vect-analyze.c.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=2.4.6.1&r2=2.4.6.2 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20474
[Bug tree-optimization/20474] ICE while compiling openmotif-2.2.3 with -ftree-vectorize
--- Additional Comments From reichelt at gcc dot gnu dot org 2005-04-26 14:33 --- Fixed in gcc 4.0.0. -- What|Removed |Added Target Milestone|--- |4.0.0 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20474
[Bug tree-optimization/20474] ICE while compiling openmotif-2.2.3 with -ftree-vectorize
--- Additional Comments From reichelt at gcc dot gnu dot org 2005-04-26 14:41 --- Really. -- What|Removed |Added Status|NEW |RESOLVED Resolution||FIXED http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20474
[Bug tree-optimization/20474] ICE while compiling openmotif-2.2.3 with -ftree-vectorize
--- Additional Comments From zlynx at acm dot org 2005-03-14 18:51 --- Created an attachment (id=8386) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=8386&action=view) preprocessed source to reproduce bug -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20474
[Bug tree-optimization/20474] ICE while compiling openmotif-2.2.3 with -ftree-vectorize
--- Additional Comments From dorit at il dot ibm dot com 2005-03-14 20:01 --- The problem is that we take the size_type of a void type, and pass null to fold_convert in vect_analyze_pointer_ref_access. So one thing to do is to make sure that we're dealing with a complete type: *** vect_analyze_pointer_ref_access (tree me *** 1321,1326 --- 1403,1416 *ptr_step = fold_convert (ssizetype, step); innertype = TREE_TYPE (reftype); + if (!COMPLETE_TYPE_P (innertype)) + { + if (vect_print_dump_info (REPORT_UNVECTORIZED_LOOPS, + LOOP_LOC (loop_vinfo))) + fprintf (vect_dump, "not vectorized: pointer to incomplete type."); + return NULL; + } + /* Check that STEP is a multiple of type size. */ if (!integer_zerop (size_binop (TRUNC_MOD_EXPR, *ptr_step, fold_convert (ssizetype, TYPE_SIZE_UNIT (innertype) This solves the ICE, but I noticed that we're actually looking at the wrong type - we're interested in the type of the data-reference, not the type of its 'init'. The following is what we want (also solves the ICE): *** vect_analyze_pointer_ref_access (tree me *** 1310,1317 return NULL; } ! reftype = TREE_TYPE (init); ! if (!POINTER_TYPE_P (reftype)) { if (vect_print_dump_info (REPORT_UNVECTORIZED_LOOPS, LOOP_LOC (loop_vinfo))) --- 1393,1399 return NULL; } ! if (!POINTER_TYPE_P (TREE_TYPE (init))) { if (vect_print_dump_info (REPORT_UNVECTORIZED_LOOPS, LOOP_LOC (loop_vinfo))) I'll bootstrap/test and submit. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20474
[Bug tree-optimization/20474] ICE while compiling openmotif-2.2.3 with -ftree-vectorize
-- What|Removed |Added CC||pinskia at gcc dot gnu dot ||org Keywords||ice-on-valid-code http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20474
[Bug tree-optimization/20474] ICE while compiling openmotif-2.2.3 with -ftree-vectorize
--- Additional Comments From irar at il dot ibm dot com 2005-03-15 11:37 --- This problem was solved in autovect branch (http://gcc.gnu.org/ml/gcc- patches/2005-03/msg00754.html). This patch will be submitted to mainline in stage 2. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20474
[Bug tree-optimization/20474] ICE while compiling openmotif-2.2.3 with -ftree-vectorize
--- Additional Comments From giovannibajo at libero dot it 2005-03-15 13:48 --- Confirmed. Please, could the autovect people remember to confirm bugs when they look at them? If you have troubles with Bugzilla privileges and e-mail accounts, contact me in private. Another thing: should we consider easily-backported fixes for ICEs also for the 4.0 branch? I guess it makes sense if they are isolated in the vectorizer code. ICEs prevent users from test the new feature, even if it is preliminar. Mark? -- What|Removed |Added CC||irar at il dot ibm dot com, ||dorit at il dot ibm dot com, ||mmitchel at gcc dot gnu dot ||org Status|UNCONFIRMED |NEW Ever Confirmed||1 Last reconfirmed|-00-00 00:00:00 |2005-03-15 13:48:23 date|| http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20474
[Bug tree-optimization/20474] ICE while compiling openmotif-2.2.3 with -ftree-vectorize
--- Additional Comments From dorit at il dot ibm dot com 2005-03-17 20:51 --- patch: http://gcc.gnu.org/ml/gcc-patches/2005-03/msg01675.html -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20474
[Bug tree-optimization/20474] ICE while compiling openmotif-2.2.3 with -ftree-vectorize
--- Additional Comments From cvs-commit at gcc dot gnu dot org 2005-03-17 21:08 --- Subject: Bug 20474 CVSROOT:/cvs/gcc Module name:gcc Changes by: [EMAIL PROTECTED] 2005-03-17 21:08:06 Modified files: gcc: ChangeLog tree-vect-analyze.c Log message: PR tree-optimization/20474 * tree-vect-analyze.c (vect_analyze_pointer_ref_access): Check the size_type of the relevant pointer. Check for COMPLETE_TYPE_P. Patches: http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.7888&r2=2.7889 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/tree-vect-analyze.c.diff?cvsroot=gcc&r1=2.12&r2=2.13 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20474