-qalloca, -ma (C only)
In IBM® XL C/C++ for AIX®
16.1.0 or earlier
releases, the -qalloca or -ma option provides an inline
definition of system function alloca when it is called from source code that does
not include the alloca.h header file.
IBM Open XL C/C++ for AIX 17.1.4
does not support a functionally equivalent option to -qalloca or
-ma. However, you can achieve a similar function using one of the following ways:
- Specify -Dalloca=__builtin_alloca on the command line to map
-qalloca to the
__builtin_allocafunction. This built-in function can be called without including thealloca.hheader file. - Include the
alloca.hheader file in source files.