public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "sjames at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [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
Date: Wed, 03 May 2023 11:42:09 +0000	[thread overview]
Message-ID: <bug-109711-4@http.gcc.gnu.org/bugzilla/> (raw)

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.
```

             reply	other threads:[~2023-05-03 11:42 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-05-03 11:42 sjames at gcc dot gnu.org [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-109711-4@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).