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

            Bug ID: 110266
           Summary: ice in gimple_range_adjustment
           Product: gcc
           Version: unknown
            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 55326
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=55326&action=edit
C source code

The attached C code does this with today's gcc trunk:

$ ~/gcc/results/bin/gcc -c -O2 bug933.c
during GIMPLE pass: vrp
blockswitch.c: In function ‘PsyBufferUpdate’:
blockswitch.c:347:13: internal compiler error: tree check: expected
integer_cst, have real_cst in to_wide, at tree.h:6314
0x1151782 tree_check_failed(tree_node const*, char const*, int, char const*,
...)
        ../../trunk.year/gcc/tree.cc:8899
0x1b773a1 gimple_range_adjustment(vrange&, gimple const*)
        ../../trunk.year/gcc/gimple-range-fold.cc:0

It seems to have gone wrong sometime between 20230609 and 20230611.
Git hashes g:067a8c7cb897b6a1 and g:20c85207abd543c7.

I will have a go at reducing the code.

Reply via email to