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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |accepts-invalid
     Ever confirmed|0                           |1
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2021-06-25

--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
DEF_GCC_BUILTIN        (BUILT_IN_EH_RETURN_DATA_REGNO, "eh_return_data_regno",
BT_FN_INT_INT, ATTR_LEAF_LIST)

so -42 is perfectly fine, but

2165        {
2166          error ("argument of %<__builtin_eh_return_regno%> must be
constant");
2167          return constm1_rtx;
2168        }
2169
2170      iwhich = tree_to_uhwi (which);

we then don't check the argument range before accessing it as unsigned.

Reply via email to