phssra@unix.cc.emory.edu (Scott R. Anderson) (02/18/89)
Under Sun OS 4.x, the definition of alloca() must be obtained from the alloca.h file, which is not true on BSD4.3 systems. When using the program bison, I find the C output contains references to alloca(), but does not contain the necessary alloca.h reference to go with it. I therefore need to explicitly include it in my .y file, which should not be necessary. The local bison sources have two files which use alloca, but (in what I believe is a local mod) alloca.h *is* referenced: #ifdef sparc #include <alloca.h> #endif It appears that a similar reference should be included around line 115 of bison.simple. However, I suggest something less restrictive than sparc, which of course will only be true for Sun-4's. * * ** Scott Robert Anderson gatech!emoryu1!phssra * * * ** phssra@unix.cc.emory.edu phssra@emoryu1.bitnet * * * * * ** * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *