getting cc to recognize alloca

Ronald S Woan woan at nowhere
Sun Feb 24 08:58:06 AEST 1991


In article <1991Feb23.195712.21940 at csn.org> englund at tramp.colorado.edu (ENGLUND TODD CHARLES) writes:
>     Sorry if this is a FAQ, but does anyone know which flags to
>give cc so that it will recognize calls to alloca.  The man page 
>for cc/xlc/c89 mentions that a flag is needed to do this, but I 
>have not been able to find it in any of the documentation for cc
>or alloca. 

#pragma alloca

at the beginning of each source file that requires alloca should do
the trick.

It's in info under pragma I believe...



--
+-----All Views Expressed Are My Own And Are Not Necessarily Shared By------+
+------------------------------My Employer----------------------------------+
+ Ronald S. Woan       woan at peyote.cactus.org or woan%austin at iinus1.ibm.com +
+ other email addresses             Prodigy: XTCR74A Compuserve: 73530,2537 +



More information about the Comp.unix.aix mailing list