-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_alloca function. This built-in function can be called without including the alloca.h header file.
  • Include the alloca.h header file in source files.

Related information