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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[15/16 Regression] ICE in   |[15/16 Regression] ICE in
                   |expand_builtin_crc_table_ba |expand_builtin_crc_table_ba
                   |sed with                    |sed with
                   |__builtin_crc8_data8        |__builtin_crc8_data8 and
                   |                            |non constant poly argument
           Keywords|ice-on-valid-code           |documentation,
                   |                            |ice-on-invalid-code

--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---

  tree rhs3 = CALL_EXPR_ARG (exp, 2); // polynomial

  gcc_assert (TREE_CODE (rhs3) == INTEGER_CST);


There are 2 issues here, __builtin_crc8_data8's polynomial argument needs to be
a constant which is NOT documented and we should be rejecting the code rather
than having an ICE here.

Reply via email to