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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
     Ever confirmed|0                           |1
            Summary|[12/13/14/15 regression]    |[12/13/14/15 regression]
                   |ICE in                      |ICE in
                   |expand_builtin_init_trampol |expand_builtin_init_trampol
                   |ine with                    |ine with
                   |__builtin_init_trampoline   |__builtin_init_trampoline
                   |using __FILE__ as 3rd       |not having a function
                   |argument                    |pointer as 2nd argument
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2025-05-05

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
  /* The FUNC argument should be the address of the nested function.
     Extract the actual function decl to pass to the hook.  */
  gcc_assert (TREE_CODE (t_func) == ADDR_EXPR);
  t_func = TREE_OPERAND (t_func, 0);
  gcc_assert (TREE_CODE (t_func) == FUNCTION_DECL);


Even this one fails:
```
void f(void)
{
    __builtin_init_trampoline (0, 0, 0);
}
```

Note it is not the 3rd argument which is causing the ICE, it is the second one.

Reply via email to