[gnu.emacs.bug] Compiling Emacs 18.52 with gcc

earle@MAHENDO.JPL.NASA.GOV (Greg Earle) (10/24/88)

Hasn't anyone compiled 18.52 with a gcc of recent vintage?  When I do so (on
a Sun-3/160, SunOS 4.0, gcc v. 1.29), trying to run the dumped xemacs yields
almost instant core dumps with SIGSEGV.  My first compilation was with

	gcc -v -W -traditional -g -finline-functions -fstrength-reduce

and I eventually removed the inline functions and strength reduction, but that
had no effect.  When I run Emacs with `-nw' it dies at the end of the function

	display_text_line (w, start, vpos, hpos, taboffset)

and dbx claims that the stack is overwritten.  If I run it normally under X,
I get a similar quick SIGSEGV in one of the functions inside x11fns.c (it
might have been x-get-default or x-set-font, don't remember which).

The standard Sun PCC-based C compiler produces an xemacs that does not have
this problem.

Does this sound familiar to anyone?

	- Greg Earle
	  Sun Los Angeles Consulting
	  earle@Sun.COM
	  earle@mahendo.JPL.NASA.GOV	(Guest account; forwarded)