public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/107435] New: ice in build_vector_from_val, at tree.cc:2125
@ 2022-10-27 15:00 dcb314 at hotmail dot com
  2022-10-27 15:06 ` [Bug tree-optimization/107435] [13 Regression] " pinskia at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: dcb314 at hotmail dot com @ 2022-10-27 15:00 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107435

            Bug ID: 107435
           Summary: ice in build_vector_from_val, at tree.cc:2125
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dcb314 at hotmail dot com
  Target Milestone: ---

Created attachment 53780
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=53780&action=edit
C source code

For the attached code, compiled with 

-std=gnu89 -O3 -march=znver3 -c bug858.c

recent gcc does this:

during GIMPLE pass: vect
src/io/trove/trove-dbpf/dbpf-open-cache.c: In function
‘dbpf_open_cache_initiali
ze’:
src/io/trove/trove-dbpf/dbpf-open-cache.c:100:6: internal compiler error: in
bui
ld_vector_from_val, at tree.cc:2125
0x1072d8e build_vector_from_val(tree_node*, tree_node*)
        ../../trunk.git/gcc/tree.cc:2124
0x100a927 vectorizable_recurr(_loop_vec_info*, _stmt_vec_info*, gimple**,
_slp_t
ree*, vec<stmt_info_for_cost, va_heap, vl_ptr>*)
        ../../trunk.git/gcc/tree-vect-loop.cc:8472

The bug first seems to occur sometime between git hash baeec7cc83b19b46
and 3bd5d9a28e1ce4d1, a day later.

I have a reduction running.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug tree-optimization/107435] [13 Regression] ice in build_vector_from_val, at tree.cc:2125
  2022-10-27 15:00 [Bug c/107435] New: ice in build_vector_from_val, at tree.cc:2125 dcb314 at hotmail dot com
@ 2022-10-27 15:06 ` pinskia at gcc dot gnu.org
  2022-10-27 15:23 ` dcb314 at hotmail dot com
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu.org @ 2022-10-27 15:06 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107435

Andrew Pinski <pinskia at gcc dot gnu.org> 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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug tree-optimization/107435] [13 Regression] ice in build_vector_from_val, at tree.cc:2125
  2022-10-27 15:00 [Bug c/107435] New: ice in build_vector_from_val, at tree.cc:2125 dcb314 at hotmail dot com
  2022-10-27 15:06 ` [Bug tree-optimization/107435] [13 Regression] " pinskia at gcc dot gnu.org
@ 2022-10-27 15:23 ` dcb314 at hotmail dot com
  2022-10-28 11:43 ` rguenth at gcc dot gnu.org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: dcb314 at hotmail dot com @ 2022-10-27 15:23 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107435

--- Comment #1 from David Binderman <dcb314 at hotmail dot com> ---
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(&prealloc[i], &free_list);
}

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug tree-optimization/107435] [13 Regression] ice in build_vector_from_val, at tree.cc:2125
  2022-10-27 15:00 [Bug c/107435] New: ice in build_vector_from_val, at tree.cc:2125 dcb314 at hotmail dot com
  2022-10-27 15:06 ` [Bug tree-optimization/107435] [13 Regression] " pinskia at gcc dot gnu.org
  2022-10-27 15:23 ` dcb314 at hotmail dot com
@ 2022-10-28 11:43 ` rguenth at gcc dot gnu.org
  2022-10-28 13:07 ` cvs-commit at gcc dot gnu.org
  2022-10-28 13:09 ` rguenth at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu.org @ 2022-10-28 11:43 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107435

Richard Biener <rguenth at gcc dot gnu.org> 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 <rguenth at gcc dot gnu.org> ---
Mine.  Missing a conversion of the scalar pointer to the vector component type.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug tree-optimization/107435] [13 Regression] ice in build_vector_from_val, at tree.cc:2125
  2022-10-27 15:00 [Bug c/107435] New: ice in build_vector_from_val, at tree.cc:2125 dcb314 at hotmail dot com
                   ` (2 preceding siblings ...)
  2022-10-28 11:43 ` rguenth at gcc dot gnu.org
@ 2022-10-28 13:07 ` cvs-commit at gcc dot gnu.org
  2022-10-28 13:09 ` rguenth at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2022-10-28 13:07 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107435

--- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Richard Biener <rguenth@gcc.gnu.org>:

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

commit r13-3544-g084128583212bd64308f50c2ab5f4c03be40e48c
Author: Richard Biener <rguenther@suse.de>
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.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug tree-optimization/107435] [13 Regression] ice in build_vector_from_val, at tree.cc:2125
  2022-10-27 15:00 [Bug c/107435] New: ice in build_vector_from_val, at tree.cc:2125 dcb314 at hotmail dot com
                   ` (3 preceding siblings ...)
  2022-10-28 13:07 ` cvs-commit at gcc dot gnu.org
@ 2022-10-28 13:09 ` rguenth at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu.org @ 2022-10-28 13:09 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107435

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|ASSIGNED                    |RESOLVED

--- Comment #4 from Richard Biener <rguenth at gcc dot gnu.org> ---
Fixed.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2022-10-28 13:09 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-27 15:00 [Bug c/107435] New: ice in build_vector_from_val, at tree.cc:2125 dcb314 at hotmail dot com
2022-10-27 15:06 ` [Bug tree-optimization/107435] [13 Regression] " pinskia at gcc dot gnu.org
2022-10-27 15:23 ` dcb314 at hotmail dot com
2022-10-28 11:43 ` rguenth at gcc dot gnu.org
2022-10-28 13:07 ` cvs-commit at gcc dot gnu.org
2022-10-28 13:09 ` rguenth 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).