On 8/25/24 9:45 AM, Marc Feeley wrote:
Really? I find it strange that on GNU gcc you have to say “gnu” in [[gnu::musttail]].
The current GCC mainline does not accept [[musttail]] as an attribute, e.g.,:
_num.c: In function '___H__23__23_random_2d_source_2d_make_2d_integers': _num.c:106590:1: warning: 'musttail' attribute ignored [-Wattributes] 106590 | ___END_P_COD
It does accept [[clang::musttail]], seemingly with the same meaning as [[gnu::musttail]]. Perhaps it doesn't accept [[musttail]] because musttail is not a C standard attribute.
This is all very new GCC machinery, added in July. It seems to have stabilized, but I don't know what final form it will take.
Brad