[LLVMdev] CWriter outputs non-portable use of alloca.h

Chris Lattner sabre at nondot.org
Mon Jun 16 17:11:01 PDT 2003


> We could change it to emit an #ifndef __FreeBSD__...#endif around
> #include <alloca.h>.  I suggest this because, I'm guessing, whether or
> not the CWriter outputs pretty code is not of utmost importance.

Sounds reasonable.  It's not pretty, but the code output by the CWriter
already does an #ifdef sun (for alloca), so I don't think adding freebsd
would add any new level of uglyness.  :)

-Chris

-- 
http://llvm.cs.uiuc.edu/
http://www.nondot.org/~sabre/Projects/




More information about the llvm-dev mailing list