#pragma alloca
Provides an inline definition of system function alloca when it is called from source code that does not include the alloca.h header.
Option syntax >>-+- -q--alloca-+--------------------------------------------->< '- -ma--------'
Pragma syntax >>-#--pragma--alloca-------------------------------------------><
Not applicable.
If you do not use any of the above-mentioned methods to ensure that calls to alloca are replaced with __alloca, alloca is treated as a user-defined identifier rather than as a built-in function.
Once specified, #pragma alloca applies to the rest of the file and cannot be disabled. If a source file contains any functions that you want compiled without #pragma alloca, place these functions in a different file.
You may want to consider using a C99 variable length array in place of alloca.
None.
To compile myprogram.c so that calls to the function alloca are treated as inline, enter:
xlc myprogram.c -qalloca