[Bug tree-optimization/107435] [13 Regression] ice in build_vector_from_val, at tree.cc:2125

2022-10-28 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107435

Richard Biener  changed:

   What|Removed |Added

 Resolution|--- |FIXED
 Status|ASSIGNED|RESOLVED

--- Comment #4 from Richard Biener  ---
Fixed.

[Bug tree-optimization/107435] [13 Regression] ice in build_vector_from_val, at tree.cc:2125

2022-10-28 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107435

--- Comment #3 from CVS Commits  ---
The master branch has been updated by Richard Biener :

https://gcc.gnu.org/g:084128583212bd64308f50c2ab5f4c03be40e48c

commit r13-3544-g084128583212bd64308f50c2ab5f4c03be40e48c
Author: Richard Biener 
Date:   Fri Oct 28 13:50:57 2022 +0200

tree-optimization/107435 - ICE with recurrence vectorization

This implements the missed conversion from pointer to integer.

PR tree-optimization/107435
* tree-vect-loop.cc (vectorizable_recurr): Convert initial
value to vector component type.

* gcc.dg/torture/pr107435.c: New testcase.

[Bug tree-optimization/107435] [13 Regression] ice in build_vector_from_val, at tree.cc:2125

2022-10-28 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107435

Richard Biener  changed:

   What|Removed |Added

 Ever confirmed|0   |1
   Assignee|unassigned at gcc dot gnu.org  |rguenth at gcc dot 
gnu.org
 Status|UNCONFIRMED |ASSIGNED
   Last reconfirmed||2022-10-28
   Priority|P3  |P1

--- Comment #2 from Richard Biener  ---
Mine.  Missing a conversion of the scalar pointer to the vector component type.

[Bug tree-optimization/107435] [13 Regression] ice in build_vector_from_val, at tree.cc:2125

2022-10-27 Thread dcb314 at hotmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107435

--- Comment #1 from David Binderman  ---
Reduced C code seems to be:

struct qlist_head {
  struct qlist_head *next
} qlist_add(struct qlist_head *new, struct qlist_head *head) {
  struct qlist_head *prev = head;
  new->next = head->next;
  prev->next = new;
}
struct {
  struct qlist_head queue_link
} free_list, prealloc[];
dbpf_open_cache_initialize() {
  int i = 0;
  for (; i < 64; i++)
qlist_add([i], _list);
}

[Bug tree-optimization/107435] [13 Regression] ice in build_vector_from_val, at tree.cc:2125

2022-10-27 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107435

Andrew Pinski  changed:

   What|Removed |Added

 Target||x86_64-linux-gnu
   Keywords||ice-on-valid-code
Version|12.0|13.0
   Target Milestone|--- |13.0
Summary|ice in  |[13 Regression] ice in
   |build_vector_from_val, at   |build_vector_from_val, at
   |tree.cc:2125|tree.cc:2125
  Component|c   |tree-optimization