pcg@aber-cs.UUCP (Piercarlo Grandi) (12/21/89)
In article <PINKAS.89Dec19174826@joker.intel.com> pinkas@joker.intel.com (Israel Pinkas) writes: [ problems installing emacs 18.55 on a 386 ] I found that I could not compile fns.c with the -O flag. I don't know why, but when I did, Emacs died in concat() with Error 11 whenever it tried to access things from the DOC file. (It appeared to read in the file without problems, but died looking up the string.) When compiled without the -O flag, everything is fine. More or less once a month I have to repeat: the 386 optimizer is fairly good, but it does by default *inline* bits of assembler code here and there, most notably concat. Unfortunately this breaks alloca(), so the solution is to turn off inlining on any source that uses alloca(). In other words you can use the following options: -O -W2,'-y 0' and you will have optimization without inlining, and alloca() will work. If you want to have an idea of which fancy optimization the 386 optimizer does, add -z to -y. Now, if only AT&T documented the zillion options for the optimizer, it would be nicer. -- Piercarlo "Peter" Grandi | ARPA: pcg%cs.aber.ac.uk@nsfnet-relay.ac.uk Dept of CS, UCW Aberystwyth | UUCP: ...!mcvax!ukc!aber-cs!pcg Penglais, Aberystwyth SY23 3BZ, UK | INET: pcg@cs.aber.ac.uk