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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
     Ever confirmed|0                           |1
   Last reconfirmed|                            |2025-04-04
            Summary|Firefox fails to build with |mixing musttail with normal
                   |PGO (error: cannot          |returns with taking the
                   |tail-call: other reasons)   |address of an argument
             Status|UNCONFIRMED                 |NEW

--- Comment #14 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
IAnother reduced testcase:
```
int ReadPackedFixed(int*);
int MiniParse(int ptr);
int PackedFixed(int ptr) {
  if (!ptr)
    [[clang::musttail]] return MiniParse(ptr);
  ReadPackedFixed(&ptr);
  return  1;
}
```

Basically it is all about taking the address of the argument and having a
normal return without a musttail.

Reply via email to