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

            Bug ID: 117190
           Summary: [15 Regression] ICE on linux-6.11.3: in
                    size_binop_loc, at fold-const.cc:2085
           Product: gcc
           Version: 15.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: slyfox at gcc dot gnu.org
  Target Milestone: ---

Noticed ICE today when building linux-6.11.3 on gcc-master from
r15-4413-gb12c9ce245204a. Did not bisect.

Reduced example:

//$ cat font_ter16x32.c.c
struct {
  char data[];
} fontdata_ter16x32 = { {

                           8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
                           0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
                           0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
                           0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
                       } };


$ ./gcc/xgcc -Bgcc -c font_ter16x32.c.c
font_ter16x32.c.c:9:24: internal compiler error: in size_binop_loc, at
fold-const.cc:2085
    9 |                        } };
      |                        ^
0x2532b6f diagnostic_context::diagnostic_impl(rich_location*,
diagnostic_metadata const*, diagnostic_option_id, char const*, __va_list_tag
(*) [1], diagnostic_t)
        ???:0
0x2542409 internal_error(char const*, ...)
        ???:0
0x252fefa fancy_abort(char const*, int, char const*)
        ???:0
0xb2de61 size_binop_loc(unsigned int, tree_code, tree_node*, tree_node*)
        ???:0
0x13b3aed output_constructor(tree_node*, unsigned long, unsigned int, bool,
oc_outer_state*)
        ???:0
0x13b2846 output_constant(tree_node*, unsigned long, unsigned int, bool, bool)
        ???:0
0x13b5057 assemble_variable_contents(tree_node*, char const*, bool, bool)
        ???:0
0x13bf416 assemble_variable(tree_node*, int, int, int)
        ???:0
0x13c3f81 varpool_node::assemble_decl()
        ???:0
0x9f2205 cgraph_order_sort::process()
        ???:0
0x9f3656 symbol_table::compile()
        ???:0
0x9f63be symbol_table::finalize_compilation_unit()
        ???:0
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.

$ ./gcc/xgcc -Bgcc -v
Reading specs from gcc/specs
COLLECT_GCC=./gcc/xgcc
COLLECT_LTO_WRAPPER=gcc/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: /home/slyfox/dev/git/gcc/configure --disable-multilib
--disable-bootstrap --disable-lto --disable-libsanitizer
--disable-libstdcxx-pch --enable-languages=c,c++ --disable-libgomp
--disable-libquadmath --disable-libvtv CFLAGS='-O1 -g0' CXXFLAGS='-O1 -g0'
LDFLAGS='-O1 -g0'
Thread model: posix
Supported LTO compression algorithms: zlib
gcc version 15.0.0 20241016 (experimental) (GCC)

Reply via email to