Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!samsung!noose.ecn.purdue.edu!mentor.cc.purdue.edu!mace.cc.purdue.edu!abe From: abe@mace.cc.purdue.edu (Vic Abell) Newsgroups: comp.unix.aix Subject: Re: Help on Compiling Emacs on AIX (RS6000) Message-ID: <5732@mace.cc.purdue.edu> Date: 9 Oct 90 21:38:21 GMT References: <9010092106.AA22112@nth.com> Reply-To: abe@mace.cc.purdue.edu (Vic Abell) Organization: Purdue University Lines: 18 In article <9010092106.AA22112@nth.com> lowe@nthropy.UUCP (Andy Lowe) writes: > >yzhao@hermes.cs.uh.edu writes: > >the posting: > use of alloca and optimization under XL C on AIX 3.1 >by abe@mace.cc.purdue.edu (Vic Abell) >in this newsgroups seems to report a similar problem. This may not be a similar problem. The official solution to the absence of alloca() is to use #pragma alloca instead. (See the BSD porting guide in /usr/lpp/bsdport.) My problem was that, while the #pragma worked with no CC optimization or with debug (-g) mode, I couldn't get it to work when I used optimization (-O). I don't yet have an answer to that paradox.