public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug ipa/109711] New: [14 regression] ICE (tree check: expected class ‘type’, have ‘exceptional’ (error_mark) in verify_range, at value-range.cc:1060) when building ffmpeg-4.4.4
@ 2023-05-03 11:42 sjames at gcc dot gnu.org
  2023-05-03 11:58 ` [Bug ipa/109711] " marxin at gcc dot gnu.org
                   ` (12 more replies)
  0 siblings, 13 replies; 14+ messages in thread
From: sjames at gcc dot gnu.org @ 2023-05-03 11:42 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 109711
           Summary: [14 regression] ICE (tree check: expected class
                    ‘type’, have ‘exceptional’ (error_mark) in
                    verify_range, at value-range.cc:1060) when building
                    ffmpeg-4.4.4
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Keywords: ice-checking, needs-bisection, needs-reduction
          Severity: normal
          Priority: P3
         Component: ipa
          Assignee: unassigned at gcc dot gnu.org
          Reporter: sjames at gcc dot gnu.org
                CC: marxin at gcc dot gnu.org
  Target Milestone: ---

Created attachment 54977
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=54977&action=edit
qcelpdec.i

Hit this when building ffmpeg-4.4.4 w/ gcc 14. Needs checking. GCC 13 is ok.

```
aarch64-unknown-linux-gnu-gcc -I. -Isrc/ -D_ISOC99_SOURCE
-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_POSIX_C_SOURCE=200112
-D_XOPEN_SOURCE=600 -DPIC -DZLIB_CONST -DHAVE_AV_CONFIG_H -
DBUILDING_avcodec -O3   -std=c11 -fPIC -pthread   -I/usr/include/freetype2
-I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include
-I/usr/include/fribidi  -I/usr/i
nclude/freetype2 -I/usr/include/librsvg-2.0 -I/usr/include/glib-2.0
-I/usr/lib64/glib-2.0/include -I/usr/lib64/libffi/include
-I/usr/include/libmount -I/usr/include/blkid -I/usr/include
/gdk-pixbuf-2.0 -I/usr/include/libpng16 -pthread -I/usr/include/cairo
-I/usr/include/freetype2 -I/usr/include/pixman-1   -DX264_API_IMPORTS     
-Wdeclaration-after-statement -Wall -Wdi
sabled-optimization -Wpointer-arith -Wredundant-decls -Wwrite-strings
-Wtype-limits -Wundef -Wmissing-prototypes -Wno-pointer-to-int-cast
-Wstrict-prototypes -Wempty-body -Wno-parenthes
es -Wno-switch -Wno-format-zero-length -Wno-pointer-sign
-Wno-unused-const-variable -Wno-bool-operation -Wno-char-subscripts -O3
-fno-math-errno -fno-signed-zeros -fno-tree-vectorize -W
error=format-security -Werror=implicit-function-declaration
-Werror=missing-prototypes -Werror=return-type -Werror=vla -Wformat
-Wno-maybe-uninitialized -I/usr/include/SDL2 -D_REENTRANT
   -MMD -MF libavcodec/qcelpdec.d -MT libavcodec/qcelpdec.o -c -o
libavcodec/qcelpdec.o src/libavcodec/qcelpdec.c
during IPA pass: inline
src/libavcodec/qcelpdec.c:802:1: internal compiler error: tree check: expected
class ‘type’, have ‘exceptional’ (error_mark) in verify_range, at
value-range.cc:1060
  802 | };
      | ^
0x6b8ed7 tree_class_check_failed(tree_node const*, tree_code_class, char
const*, int, char const*)
       
/usr/src/debug/sys-devel/gcc-14.0.0.9999/gcc-14.0.0.9999/gcc/tree.cc:8949
0x120adbf tree_class_check(tree_node*, tree_code_class, char const*, int, char
const*)
       
/usr/src/debug/sys-devel/gcc-14.0.0.9999/gcc-14.0.0.9999/gcc/tree.h:3663
0x120adbf irange::verify_range()
       
/usr/src/debug/sys-devel/gcc-14.0.0.9999/gcc-14.0.0.9999/gcc/value-range.cc:1060
0x120af4f irange::operator=(irange const&)
       
/usr/src/debug/sys-devel/gcc-14.0.0.9999/gcc-14.0.0.9999/gcc/value-range.cc:923
0xb82707 int_range<2u>::operator=(int_range<2u> const&)
       
/usr/src/debug/sys-devel/gcc-14.0.0.9999/gcc-14.0.0.9999/gcc/value-range.h:817
0xb82707 evaluate_conditions_for_known_args
       
/usr/src/debug/sys-devel/gcc-14.0.0.9999/gcc-14.0.0.9999/gcc/ipa-fnsummary.cc:517
0xb9ab7f do_estimate_edge_size(cgraph_edge*)
       
/usr/src/debug/sys-devel/gcc-14.0.0.9999/gcc-14.0.0.9999/gcc/ipa-inline-analysis.cc:335
0xb9d883 estimate_edge_size(cgraph_edge*)
       
/usr/src/debug/sys-devel/gcc-14.0.0.9999/gcc-14.0.0.9999/gcc/ipa-inline.h:79
0xb9d883 estimate_edge_growth(cgraph_edge*)
       
/usr/src/debug/sys-devel/gcc-14.0.0.9999/gcc-14.0.0.9999/gcc/ipa-inline.h:100
0xb9c04f do_estimate_growth_1
       
/usr/src/debug/sys-devel/gcc-14.0.0.9999/gcc-14.0.0.9999/gcc/ipa-inline-analysis.cc:434
0xb9c193 cgraph_node::call_for_symbol_and_aliases(bool (*)(cgraph_node*,
void*), void*, bool)
       
/usr/src/debug/sys-devel/gcc-14.0.0.9999/gcc-14.0.0.9999/gcc/cgraph.h:3412
0xb9c193 estimate_growth(cgraph_node*)
       
/usr/src/debug/sys-devel/gcc-14.0.0.9999/gcc-14.0.0.9999/gcc/ipa-inline-analysis.cc:472
0x1e82d27 inline_small_functions
       
/usr/src/debug/sys-devel/gcc-14.0.0.9999/gcc-14.0.0.9999/gcc/ipa-inline.cc:2042
0x1e82d27 ipa_inline
       
/usr/src/debug/sys-devel/gcc-14.0.0.9999/gcc-14.0.0.9999/gcc/ipa-inline.cc:2811
0x1e82d27 execute
       
/usr/src/debug/sys-devel/gcc-14.0.0.9999/gcc-14.0.0.9999/gcc/ipa-inline.cc:3210
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
Please include the complete backtrace with any bug report.
See <https://bugs.gentoo.org/> for instructions.
```

----
```
$ aarch64-unknown-linux-gnu-gcc -c qcelpdec.i -O2
during IPA pass: inline
src/libavcodec/qcelpdec.c:802:1: internal compiler error: tree check: expected
class ‘type’, have ‘exceptional’ (error_mark) in verify_range, at
value-range.cc:1060
0x6b8ed7 tree_class_check_failed(tree_node const*, tree_code_class, char
const*, int, char const*)
       
/usr/src/debug/sys-devel/gcc-14.0.0.9999/gcc-14.0.0.9999/gcc/tree.cc:8949
0x120adbf tree_class_check(tree_node*, tree_code_class, char const*, int, char
const*)
       
/usr/src/debug/sys-devel/gcc-14.0.0.9999/gcc-14.0.0.9999/gcc/tree.h:3663
0x120adbf irange::verify_range()
[...]

$ gcc (Gentoo 14.0.0.9999 p, commit 490c1c096ca1d3a1f4a84801a46231d64c07ba49)
14.0.0 20230503 (experimental) 6313b0457394172b13978b9772d49eea1d68d3a1
Copyright (C) 2023 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
```

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

* [Bug ipa/109711] [14 regression] ICE (tree check: expected class ‘type’, have ‘exceptional’ (error_mark) in verify_range, at value-range.cc:1060) when building ffmpeg-4.4.4
  2023-05-03 11:42 [Bug ipa/109711] New: [14 regression] ICE (tree check: expected class ‘type’, have ‘exceptional’ (error_mark) in verify_range, at value-range.cc:1060) when building ffmpeg-4.4.4 sjames at gcc dot gnu.org
@ 2023-05-03 11:58 ` marxin at gcc dot gnu.org
  2023-05-03 12:05 ` [Bug ipa/109711] [14 regression] ICE (tree check: expected class ‘type’, have ‘exceptional’ (error_mark) in verify_range, at value-range.cc:1060) when building ffmpeg-4.4.4 since r14-377-gc92b8be9b52b7e marxin at gcc dot gnu.org
                   ` (11 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: marxin at gcc dot gnu.org @ 2023-05-03 11:58 UTC (permalink / raw)
  To: gcc-bugs

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

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
           Keywords|needs-reduction             |
   Last reconfirmed|                            |2023-05-03
     Ever confirmed|0                           |1

--- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> ---
I reduced that to:

$ cat pr109711.i
void lspf2lpc();

int interpolate_lpc_q_0;

void
interpolate_lpc(int subframe_num) {
  float weight;
  if (interpolate_lpc_q_0)
    weight = subframe_num;
  else
    weight = 1.0;
  if (weight != 1.0)
    lspf2lpc();
}

void
qcelp_decode_frame() {
  int i;
  for (;; i++)
    interpolate_lpc(i);
}

$ /dev/shm/objdir2/gcc/xgcc -B/dev/shm/objdir2/gcc pr109711.i -c -O2
during IPA pass: inline
pr109711.i:21:1: internal compiler error: tree check: expected class ‘type’,
have ‘exceptional’ (error_mark) in verify_range, at value-range.cc:1060
   21 | }
      | ^
0x84dfd7 tree_class_check_failed(tree_node const*, tree_code_class, char
const*, int, char const*)
        /home/marxin/Programming/gcc/gcc/tree.cc:8949
0x85baff tree_class_check(tree_node*, tree_code_class, char const*, int, char
const*)
        /home/marxin/Programming/gcc/gcc/tree.h:3663
0x85baff irange::verify_range()
        /home/marxin/Programming/gcc/gcc/value-range.cc:1060
0x1279d97 irange::operator=(irange const&)
        /home/marxin/Programming/gcc/gcc/value-range.cc:923
0xcd61a7 int_range<2u>::operator=(int_range<2u> const&)
        /home/marxin/Programming/gcc/gcc/value-range.h:817
0xcd61a7 evaluate_conditions_for_known_args
        /home/marxin/Programming/gcc/gcc/ipa-fnsummary.cc:517
0xcee9c5 do_estimate_edge_size(cgraph_edge*)
        /home/marxin/Programming/gcc/gcc/ipa-inline-analysis.cc:335
0xcf1465 estimate_edge_size(cgraph_edge*)
        /home/marxin/Programming/gcc/gcc/ipa-inline.h:79
0xcf1465 estimate_edge_growth(cgraph_edge*)
        /home/marxin/Programming/gcc/gcc/ipa-inline.h:100
0xcefe15 do_estimate_growth_1
        /home/marxin/Programming/gcc/gcc/ipa-inline-analysis.cc:434
0xcefef6 cgraph_node::call_for_symbol_and_aliases(bool (*)(cgraph_node*,
void*), void*, bool)
        /home/marxin/Programming/gcc/gcc/cgraph.h:3412
0xcefef6 estimate_growth(cgraph_node*)
        /home/marxin/Programming/gcc/gcc/ipa-inline-analysis.cc:472
0x1d972c4 inline_small_functions
        /home/marxin/Programming/gcc/gcc/ipa-inline.cc:2042
0x1d972c4 ipa_inline
        /home/marxin/Programming/gcc/gcc/ipa-inline.cc:2811
0x1d972c4 execute
        /home/marxin/Programming/gcc/gcc/ipa-inline.cc:3210
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.

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

* [Bug ipa/109711] [14 regression] ICE (tree check: expected class ‘type’, have ‘exceptional’ (error_mark) in verify_range, at value-range.cc:1060) when building ffmpeg-4.4.4 since r14-377-gc92b8be9b52b7e
  2023-05-03 11:42 [Bug ipa/109711] New: [14 regression] ICE (tree check: expected class ‘type’, have ‘exceptional’ (error_mark) in verify_range, at value-range.cc:1060) when building ffmpeg-4.4.4 sjames at gcc dot gnu.org
  2023-05-03 11:58 ` [Bug ipa/109711] " marxin at gcc dot gnu.org
@ 2023-05-03 12:05 ` marxin at gcc dot gnu.org
  2023-05-03 12:07 ` marxin at gcc dot gnu.org
                   ` (10 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: marxin at gcc dot gnu.org @ 2023-05-03 12:05 UTC (permalink / raw)
  To: gcc-bugs

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

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|needs-bisection             |
            Summary|[14 regression] ICE (tree   |[14 regression] ICE (tree
                   |check: expected class       |check: expected class
                   |‘type’, have ‘exceptional’  |‘type’, have ‘exceptional’
                   |(error_mark) in             |(error_mark) in
                   |verify_range, at            |verify_range, at
                   |value-range.cc:1060) when   |value-range.cc:1060) when
                   |building ffmpeg-4.4.4       |building ffmpeg-4.4.4 since
                   |                            |r14-377-gc92b8be9b52b7e

--- Comment #2 from Martin Liška <marxin at gcc dot gnu.org> ---
Started with r14-377-gc92b8be9b52b7e and it's not related to aarch64, can
reproduce on x86_64-linux-gnu as well.

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

* [Bug ipa/109711] [14 regression] ICE (tree check: expected class ‘type’, have ‘exceptional’ (error_mark) in verify_range, at value-range.cc:1060) when building ffmpeg-4.4.4 since r14-377-gc92b8be9b52b7e
  2023-05-03 11:42 [Bug ipa/109711] New: [14 regression] ICE (tree check: expected class ‘type’, have ‘exceptional’ (error_mark) in verify_range, at value-range.cc:1060) when building ffmpeg-4.4.4 sjames at gcc dot gnu.org
  2023-05-03 11:58 ` [Bug ipa/109711] " marxin at gcc dot gnu.org
  2023-05-03 12:05 ` [Bug ipa/109711] [14 regression] ICE (tree check: expected class ‘type’, have ‘exceptional’ (error_mark) in verify_range, at value-range.cc:1060) when building ffmpeg-4.4.4 since r14-377-gc92b8be9b52b7e marxin at gcc dot gnu.org
@ 2023-05-03 12:07 ` marxin at gcc dot gnu.org
  2023-05-03 12:10 ` sjames at gcc dot gnu.org
                   ` (9 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: marxin at gcc dot gnu.org @ 2023-05-03 12:07 UTC (permalink / raw)
  To: gcc-bugs

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

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tnfchris at gcc dot gnu.org

--- Comment #3 from Martin Liška <marxin at gcc dot gnu.org> ---
Hm, on x86_64-linux-gnu, it started with r13-6616-g2246d576f922ba.

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

* [Bug ipa/109711] [14 regression] ICE (tree check: expected class ‘type’, have ‘exceptional’ (error_mark) in verify_range, at value-range.cc:1060) when building ffmpeg-4.4.4 since r14-377-gc92b8be9b52b7e
  2023-05-03 11:42 [Bug ipa/109711] New: [14 regression] ICE (tree check: expected class ‘type’, have ‘exceptional’ (error_mark) in verify_range, at value-range.cc:1060) when building ffmpeg-4.4.4 sjames at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2023-05-03 12:07 ` marxin at gcc dot gnu.org
@ 2023-05-03 12:10 ` sjames at gcc dot gnu.org
  2023-05-03 13:14 ` tnfchris at gcc dot gnu.org
                   ` (8 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: sjames at gcc dot gnu.org @ 2023-05-03 12:10 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from Sam James <sjames at gcc dot gnu.org> ---
Slightly smaller:

```
void lspf2lpc();

void interpolate_lpc(int subframe_num) {
  float weight = 0.25 * subframe_num + 1;
  if (weight)
    lspf2lpc();
}

void qcelp_decode_frame() {
  int i;
  for (;; i++)
    interpolate_lpc(i);
}
```

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

* [Bug ipa/109711] [14 regression] ICE (tree check: expected class ‘type’, have ‘exceptional’ (error_mark) in verify_range, at value-range.cc:1060) when building ffmpeg-4.4.4 since r14-377-gc92b8be9b52b7e
  2023-05-03 11:42 [Bug ipa/109711] New: [14 regression] ICE (tree check: expected class ‘type’, have ‘exceptional’ (error_mark) in verify_range, at value-range.cc:1060) when building ffmpeg-4.4.4 sjames at gcc dot gnu.org
                   ` (3 preceding siblings ...)
  2023-05-03 12:10 ` sjames at gcc dot gnu.org
@ 2023-05-03 13:14 ` tnfchris at gcc dot gnu.org
  2023-05-03 13:15 ` rguenth at gcc dot gnu.org
                   ` (7 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: tnfchris at gcc dot gnu.org @ 2023-05-03 13:14 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #5 from Tamar Christina <tnfchris at gcc dot gnu.org> ---
(In reply to Martin Liška from comment #3)
> Hm, on x86_64-linux-gnu, it started with r13-6616-g2246d576f922ba.

$ cat prtest2.c
void lspf2lpc();

int interpolate_lpc_q_0;

void
interpolate_lpc(int subframe_num) {
  float weight;
  if (interpolate_lpc_q_0)
    weight = subframe_num;
  else
    weight = 1.0;
  if (weight != 1.0)
    lspf2lpc();
}

void
qcelp_decode_frame() {
  int i;
  for (;; i++)
    interpolate_lpc(i);
}

$ ./install/bin/gcc --version
gcc (GCC) 13.0.1 20230312 (experimental)

$ git log -1
commit 2246d576f922bae3629da0fe1dbfcc6ff06769ad (HEAD)
Author: Tamar Christina <tamar.christina@arm.com>
Date:   Sun Mar 12 18:39:33 2023 +0000

    middle-end: Revert can_special_div_by_const changes [PR108583]

    This reverts the changes for the CAN_SPECIAL_DIV_BY_CONST hook.

    gcc/ChangeLog:

            PR target/108583
            * doc/tm.texi (TARGET_VECTORIZE_CAN_SPECIAL_DIV_BY_CONST): Remove.
            * doc/tm.texi.in: Likewise.
            * explow.cc (round_push, align_dynamic_address): Revert previous
patch.
            * expmed.cc (expand_divmod): Likewise.
            * expmed.h (expand_divmod): Likewise.
            * expr.cc (force_operand, expand_expr_divmod): Likewise.
            * optabs.cc (expand_doubleword_mod, expand_doubleword_divmod):
Likewise.
            * target.def (can_special_div_by_const): Remove.
            * target.h: Remove tree-core.h include
            * targhooks.cc (default_can_special_div_by_const): Remove.
            * targhooks.h (default_can_special_div_by_const): Remove.
            * tree-vect-generic.cc (expand_vector_operation): Remove hook.
            * tree-vect-patterns.cc (vect_recog_divmod_pattern): Remove hook.
            * tree-vect-stmts.cc (vectorizable_operation): Remove hook.

$ ./install/bin/gcc -O2 -S -o - prtest2.c
        .file   "prtest2.c"
        .text
        .p2align 4
        .globl  interpolate_lpc
        .type   interpolate_lpc, @function
interpolate_lpc:
.LFB0:
        .cfi_startproc
        movl    interpolate_lpc_q_0(%rip), %eax
        testl   %eax, %eax
        je      .L1
        pxor    %xmm0, %xmm0
        cvtsi2ssl       %edi, %xmm0
        ucomiss .LC0(%rip), %xmm0
        jp      .L4
        jne     .L4
.L1:
        ret
        .p2align 4,,10
        .p2align 3
...

Also that commit doesn't build because I forgot to cp tm.texi to the source
directory after the revert.

So I think the bisect probably didn't find it in that range.

https://godbolt.org/z/r44xGzarY indicates GCC 13.1 is fine.  So I don't think
this one is mine.

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

* [Bug ipa/109711] [14 regression] ICE (tree check: expected class ‘type’, have ‘exceptional’ (error_mark) in verify_range, at value-range.cc:1060) when building ffmpeg-4.4.4 since r14-377-gc92b8be9b52b7e
  2023-05-03 11:42 [Bug ipa/109711] New: [14 regression] ICE (tree check: expected class ‘type’, have ‘exceptional’ (error_mark) in verify_range, at value-range.cc:1060) when building ffmpeg-4.4.4 sjames at gcc dot gnu.org
                   ` (4 preceding siblings ...)
  2023-05-03 13:14 ` tnfchris at gcc dot gnu.org
@ 2023-05-03 13:15 ` rguenth at gcc dot gnu.org
  2023-05-03 13:47 ` tnfchris at gcc dot gnu.org
                   ` (6 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: rguenth at gcc dot gnu.org @ 2023-05-03 13:15 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P1
   Target Milestone|---                         |14.0

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

* [Bug ipa/109711] [14 regression] ICE (tree check: expected class ‘type’, have ‘exceptional’ (error_mark) in verify_range, at value-range.cc:1060) when building ffmpeg-4.4.4 since r14-377-gc92b8be9b52b7e
  2023-05-03 11:42 [Bug ipa/109711] New: [14 regression] ICE (tree check: expected class ‘type’, have ‘exceptional’ (error_mark) in verify_range, at value-range.cc:1060) when building ffmpeg-4.4.4 sjames at gcc dot gnu.org
                   ` (5 preceding siblings ...)
  2023-05-03 13:15 ` rguenth at gcc dot gnu.org
@ 2023-05-03 13:47 ` tnfchris at gcc dot gnu.org
  2023-05-03 13:52 ` aldyh at gcc dot gnu.org
                   ` (5 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: tnfchris at gcc dot gnu.org @ 2023-05-03 13:47 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #6 from Tamar Christina <tnfchris at gcc dot gnu.org> ---
my own bisect does indeed end up at r14-377-gc92b8be9b52b7e and cannot
reproduce it on GCC 13.

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

* [Bug ipa/109711] [14 regression] ICE (tree check: expected class ‘type’, have ‘exceptional’ (error_mark) in verify_range, at value-range.cc:1060) when building ffmpeg-4.4.4 since r14-377-gc92b8be9b52b7e
  2023-05-03 11:42 [Bug ipa/109711] New: [14 regression] ICE (tree check: expected class ‘type’, have ‘exceptional’ (error_mark) in verify_range, at value-range.cc:1060) when building ffmpeg-4.4.4 sjames at gcc dot gnu.org
                   ` (6 preceding siblings ...)
  2023-05-03 13:47 ` tnfchris at gcc dot gnu.org
@ 2023-05-03 13:52 ` aldyh at gcc dot gnu.org
  2023-05-03 13:52 ` aldyh at gcc dot gnu.org
                   ` (4 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: aldyh at gcc dot gnu.org @ 2023-05-03 13:52 UTC (permalink / raw)
  To: gcc-bugs

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

Aldy Hernandez <aldyh at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |amacleod at redhat dot com

--- Comment #7 from Aldy Hernandez <aldyh at gcc dot gnu.org> ---
It looks like IPA is trying to set a range for a float even though value_range
does not support floats.  This worked before because legacy silently set a
range of error_mark_node.

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

* [Bug ipa/109711] [14 regression] ICE (tree check: expected class ‘type’, have ‘exceptional’ (error_mark) in verify_range, at value-range.cc:1060) when building ffmpeg-4.4.4 since r14-377-gc92b8be9b52b7e
  2023-05-03 11:42 [Bug ipa/109711] New: [14 regression] ICE (tree check: expected class ‘type’, have ‘exceptional’ (error_mark) in verify_range, at value-range.cc:1060) when building ffmpeg-4.4.4 sjames at gcc dot gnu.org
                   ` (7 preceding siblings ...)
  2023-05-03 13:52 ` aldyh at gcc dot gnu.org
@ 2023-05-03 13:52 ` aldyh at gcc dot gnu.org
  2023-05-03 15:32 ` aldyh at gcc dot gnu.org
                   ` (3 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: aldyh at gcc dot gnu.org @ 2023-05-03 13:52 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #8 from Aldy Hernandez <aldyh at gcc dot gnu.org> ---
Created attachment 54980
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=54980&action=edit
untested

This may fix it.

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

* [Bug ipa/109711] [14 regression] ICE (tree check: expected class ‘type’, have ‘exceptional’ (error_mark) in verify_range, at value-range.cc:1060) when building ffmpeg-4.4.4 since r14-377-gc92b8be9b52b7e
  2023-05-03 11:42 [Bug ipa/109711] New: [14 regression] ICE (tree check: expected class ‘type’, have ‘exceptional’ (error_mark) in verify_range, at value-range.cc:1060) when building ffmpeg-4.4.4 sjames at gcc dot gnu.org
                   ` (8 preceding siblings ...)
  2023-05-03 13:52 ` aldyh at gcc dot gnu.org
@ 2023-05-03 15:32 ` aldyh at gcc dot gnu.org
  2023-05-03 17:15 ` cvs-commit at gcc dot gnu.org
                   ` (2 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: aldyh at gcc dot gnu.org @ 2023-05-03 15:32 UTC (permalink / raw)
  To: gcc-bugs

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

Aldy Hernandez <aldyh at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #54980|0                           |1
        is obsolete|                            |

--- Comment #9 from Aldy Hernandez <aldyh at gcc dot gnu.org> ---
Created attachment 54982
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=54982&action=edit
patch in testing

I think it's easiest to restore the legacy behavior for now.  A proper
conversion of IPA should follow.

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

* [Bug ipa/109711] [14 regression] ICE (tree check: expected class ‘type’, have ‘exceptional’ (error_mark) in verify_range, at value-range.cc:1060) when building ffmpeg-4.4.4 since r14-377-gc92b8be9b52b7e
  2023-05-03 11:42 [Bug ipa/109711] New: [14 regression] ICE (tree check: expected class ‘type’, have ‘exceptional’ (error_mark) in verify_range, at value-range.cc:1060) when building ffmpeg-4.4.4 sjames at gcc dot gnu.org
                   ` (9 preceding siblings ...)
  2023-05-03 15:32 ` aldyh at gcc dot gnu.org
@ 2023-05-03 17:15 ` cvs-commit at gcc dot gnu.org
  2023-05-03 17:16 ` aldyh at gcc dot gnu.org
  2023-11-05 21:41 ` pinskia at gcc dot gnu.org
  12 siblings, 0 replies; 14+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2023-05-03 17:15 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #10 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Aldy Hernandez <aldyh@gcc.gnu.org>:

https://gcc.gnu.org/g:2b8a27634f5d28e3e7c4a08bf065f2daada7aed2

commit r14-458-g2b8a27634f5d28e3e7c4a08bf065f2daada7aed2
Author: Aldy Hernandez <aldyh@redhat.com>
Date:   Wed May 3 17:29:24 2023 +0200

    Allow varying ranges of unknown types in irange::verify_range [PR109711]

    The old legacy code allowed building ranges of unknown types so passes
    like IPA could build and propagate VARYING.  For now it's easiest to
    allow the old behavior, it's not like you can do anything with these
    ranges except build them and copy them.

    Eventually we should convert all users of set_varying() to use
    supported types.  I will address this in my upcoming IPA work.

            PR tree-optimization/109711

    gcc/ChangeLog:

            * value-range.cc (irange::verify_range): Allow types of
            error_mark_node.

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

* [Bug ipa/109711] [14 regression] ICE (tree check: expected class ‘type’, have ‘exceptional’ (error_mark) in verify_range, at value-range.cc:1060) when building ffmpeg-4.4.4 since r14-377-gc92b8be9b52b7e
  2023-05-03 11:42 [Bug ipa/109711] New: [14 regression] ICE (tree check: expected class ‘type’, have ‘exceptional’ (error_mark) in verify_range, at value-range.cc:1060) when building ffmpeg-4.4.4 sjames at gcc dot gnu.org
                   ` (10 preceding siblings ...)
  2023-05-03 17:15 ` cvs-commit at gcc dot gnu.org
@ 2023-05-03 17:16 ` aldyh at gcc dot gnu.org
  2023-11-05 21:41 ` pinskia at gcc dot gnu.org
  12 siblings, 0 replies; 14+ messages in thread
From: aldyh at gcc dot gnu.org @ 2023-05-03 17:16 UTC (permalink / raw)
  To: gcc-bugs

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

Aldy Hernandez <aldyh at gcc dot gnu.org> changed:

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

--- Comment #11 from Aldy Hernandez <aldyh at gcc dot gnu.org> ---
fixed

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

* [Bug ipa/109711] [14 regression] ICE (tree check: expected class ‘type’, have ‘exceptional’ (error_mark) in verify_range, at value-range.cc:1060) when building ffmpeg-4.4.4 since r14-377-gc92b8be9b52b7e
  2023-05-03 11:42 [Bug ipa/109711] New: [14 regression] ICE (tree check: expected class ‘type’, have ‘exceptional’ (error_mark) in verify_range, at value-range.cc:1060) when building ffmpeg-4.4.4 sjames at gcc dot gnu.org
                   ` (11 preceding siblings ...)
  2023-05-03 17:16 ` aldyh at gcc dot gnu.org
@ 2023-11-05 21:41 ` pinskia at gcc dot gnu.org
  12 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-11-05 21:41 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dcb314 at hotmail dot com

--- Comment #12 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
*** Bug 109696 has been marked as a duplicate of this bug. ***

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

end of thread, other threads:[~2023-11-05 21:41 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-03 11:42 [Bug ipa/109711] New: [14 regression] ICE (tree check: expected class ‘type’, have ‘exceptional’ (error_mark) in verify_range, at value-range.cc:1060) when building ffmpeg-4.4.4 sjames at gcc dot gnu.org
2023-05-03 11:58 ` [Bug ipa/109711] " marxin at gcc dot gnu.org
2023-05-03 12:05 ` [Bug ipa/109711] [14 regression] ICE (tree check: expected class ‘type’, have ‘exceptional’ (error_mark) in verify_range, at value-range.cc:1060) when building ffmpeg-4.4.4 since r14-377-gc92b8be9b52b7e marxin at gcc dot gnu.org
2023-05-03 12:07 ` marxin at gcc dot gnu.org
2023-05-03 12:10 ` sjames at gcc dot gnu.org
2023-05-03 13:14 ` tnfchris at gcc dot gnu.org
2023-05-03 13:15 ` rguenth at gcc dot gnu.org
2023-05-03 13:47 ` tnfchris at gcc dot gnu.org
2023-05-03 13:52 ` aldyh at gcc dot gnu.org
2023-05-03 13:52 ` aldyh at gcc dot gnu.org
2023-05-03 15:32 ` aldyh at gcc dot gnu.org
2023-05-03 17:15 ` cvs-commit at gcc dot gnu.org
2023-05-03 17:16 ` aldyh at gcc dot gnu.org
2023-11-05 21:41 ` pinskia 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).