public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/112444] New: [14 regression] ICE when buliding libqmi (internal compiler error: tree check: expected class ‘type’, have ‘exceptional’ (error_mark) in useless_type_conversion_p, at gimple-expr.cc:85)
@ 2023-11-08 14:29 sjames at gcc dot gnu.org
  2023-11-08 15:26 ` [Bug middle-end/112444] [14 regression] ICE when buliding libqmi with -O3 -ftrivial-auto-var-init=zero " sjames at gcc dot gnu.org
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: sjames at gcc dot gnu.org @ 2023-11-08 14:29 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 112444
           Summary: [14 regression] ICE when buliding libqmi (internal
                    compiler error: tree check: expected class ‘type’,
                    have ‘exceptional’ (error_mark) in
                    useless_type_conversion_p, at gimple-expr.cc:85)
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
          Assignee: unassigned at gcc dot gnu.org
          Reporter: sjames at gcc dot gnu.org
  Target Milestone: ---

Created attachment 56534
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=56534&action=edit
meson-generated_.._qmi-pbm.c.i.xz

Originally reported downstream in Gentoo by Toralf Förster at
https://bugs.gentoo.org/917037.

Seems to need -ftrivial-auto-var-init=zero.
```
# x86_64-pc-linux-gnu-gcc -Isrc/libqmi-glib/generated/libqmi-glib-generated.a.p
-Isrc/libqmi-glib/generated -I../libqmi-1.32.4/src/libqmi-glib/generated -I.
-I../libqmi-1.32.4 -Isrc/libqmi-glib -I../libqmi-1.32.4/src/libqmi-glib
-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/libqrtr-glib -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64
-Wall -Winvalid-pch -Wextra -std=gnu89 -DHAVE_CONFIG_H -Wno-unused-parameter
-Wno-cast-function-type -Wno-packed -O3 -pipe -march=native
-fno-diagnostics-color -fPIC -pthread
-DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_56
-DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_56
-DGLIB_DISABLE_DEPRECATION_WARNINGS -DLIBQMI_GLIB_COMPILATION
'-DG_LOG_DOMAIN="Qmi"' -Wno-unused-function -MD -MQ
src/libqmi-glib/generated/libqmi-glib-generated.a.p/meson-generated_.._qmi-pbm.c.o
-MF
src/libqmi-glib/generated/libqmi-glib-generated.a.p/meson-generated_.._qmi-pbm.c.o.d
-o
src/libqmi-glib/generated/libqmi-glib-generated.a.p/meson-generated_.._qmi-pbm.c.o
-c src/libqmi-glib/generated/qmi-pbm.c -ftrivial-auto-var-init=zero
during GIMPLE pass: fre
src/libqmi-glib/generated/qmi-pbm.c: In function
‘message_get_all_capabilities_get_tlv_printable’:
src/libqmi-glib/generated/qmi-pbm.c:3934:1: internal compiler error: tree
check: expected class ‘type’, have ‘exceptional’ (error_mark) in
useless_type_conversion_p, at gimple-expr.cc:85
 3934 | message_get_all_capabilities_get_tlv_printable (
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
0x560e0a0b792f tree_class_check_failed(tree_node const*, tree_code_class, char
const*, int, char const*)
       
/usr/src/debug/sys-devel/gcc-14.0.0_pre20231105/gcc-14-20231105/gcc/tree.cc:8999
0x560e0924e52a tree_class_check(tree_node*, tree_code_class, char const*, int,
char const*)
       
/usr/src/debug/sys-devel/gcc-14.0.0_pre20231105/gcc-14-20231105/gcc/tree.h:3753
0x560e0924e52a useless_type_conversion_p(tree_node*, tree_node*)
       
/usr/src/debug/sys-devel/gcc-14.0.0_pre20231105/gcc-14-20231105/gcc/gimple-expr.cc:85
0x560e0a9c8534 verify_gimple_assign_single
       
/usr/src/debug/sys-devel/gcc-14.0.0_pre20231105/gcc-14-20231105/gcc/tree-cfg.cc:4593
0x560e0aa84d20 verify_gimple_in_cfg(function*, bool, bool)
       
/usr/src/debug/sys-devel/gcc-14.0.0_pre20231105/gcc-14-20231105/gcc/tree-cfg.cc:5582
0x560e0a8f7f9c execute_function_todo
       
/usr/src/debug/sys-devel/gcc-14.0.0_pre20231105/gcc-14-20231105/gcc/passes.cc:2088
0x560e0a8f7f9c do_per_function
       
/usr/src/debug/sys-devel/gcc-14.0.0_pre20231105/gcc-14-20231105/gcc/passes.cc:1687
0x560e0a8f7f9c execute_todo
       
/usr/src/debug/sys-devel/gcc-14.0.0_pre20231105/gcc-14-20231105/gcc/passes.cc:2142
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.
```

'gcc -c meson-generated_.._qmi-pbm.c.i -O3 -ftrivial-auto-var-init=zero' is
enough for me to reproduce.

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

end of thread, other threads:[~2023-12-12  7:16 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-08 14:29 [Bug middle-end/112444] New: [14 regression] ICE when buliding libqmi (internal compiler error: tree check: expected class ‘type’, have ‘exceptional’ (error_mark) in useless_type_conversion_p, at gimple-expr.cc:85) sjames at gcc dot gnu.org
2023-11-08 15:26 ` [Bug middle-end/112444] [14 regression] ICE when buliding libqmi with -O3 -ftrivial-auto-var-init=zero " sjames at gcc dot gnu.org
2023-11-09  0:34 ` pinskia at gcc dot gnu.org
2023-11-09  0:36 ` pinskia at gcc dot gnu.org
2023-11-09  0:41 ` pinskia at gcc dot gnu.org
2023-11-09  0:44 ` pinskia at gcc dot gnu.org
2023-11-09  1:10 ` [Bug middle-end/112444] [14 regression] ICE when buliding libqmi with -O3 -ftrivial-auto-var-init=zero (internal compiler error: tree check: expected class ‘type’, have ‘exceptional’ (error_mark) in useless_type_conversion_p, at gimple-expr.cc:85) since r14-4405-gb583a2940af90d sjames at gcc dot gnu.org
2023-11-09  7:45 ` rguenth at gcc dot gnu.org
2023-11-09  8:42 ` rguenth at gcc dot gnu.org
2023-11-09 10:52 ` cvs-commit at gcc dot gnu.org
2023-11-09 10:52 ` rguenth at gcc dot gnu.org
2023-12-12  7:16 ` 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).