getting cc to recognize alloca

Dick Dunn rcd at ico.isc.com
Sun Feb 24 17:55:04 AEST 1991


andreess at mrlaxs.mrl.uiuc.edu (Marc Andreessen) writes:
> 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.  [...]

> Put '#pragma alloca' in your source file.

But is there an answer for the original question?  Sure, it's only a
one-line (per file) change, but one might like to avoid gratuitous changes
to source files, particularly if there are a lot of them (and if, as seems
likely, missing one will make the resulting program fail).  Is there no
compiler flag?
-- 
Dick Dunn     rcd at ico.isc.com -or- ico!rcd       Boulder, CO   (303)449-2870
   ...But is it art?



More information about the Comp.unix.aix mailing list