This attribute makes ‘GCC’ generate stack extension code for the function for which it was used (see -mstackextend). This makes it possible to use stack extension selectively, only for the “dangerous” functions — recursive functions, functions with large local variables, etc.
Note: For compatibility with other AmigaOS ‘C’ compilers, a preprocessor symbol ‘__stackext’ is available, which expands to
__attribute__((stackext))(see Keyword macros).
The ‘stackext’ attribute is mutually exclusive with the ‘interrupt’ attribute (see interrupt).
This attribute is not necessary in function declarations (prototypes).
This attribute was first made available in the ‘GCC’ 18.104.22.168, ‘Geek Gadgets’ snapshot ‘961012’.