Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!unix.cc.emory.edu!phssra From: phssra@unix.cc.emory.edu (Scott R. Anderson) Newsgroups: gnu.utils.bug Subject: bison under SunOS 4 Message-ID: <8902171600.AA28617@emoryu1.cc.emory.edu> Date: 17 Feb 89 16:00:06 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 21 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 #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 * * * * * ** * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *