Subject: bug#6039: Building Emacs BZR with GCC 4.5.0

From: Chong Yidong <[email-masked]>
Date: Tue, 27 Apr 2010 11:38:18 -0400

Vladimir Lomov <[email-masked]> writes:

> Seems that if I pass option '-fno-optimize-sibling-calls' to configure
> (CFLAGS="-O2 -fno-optimize-sibling-calls")
> then compiled emacs works
> (I run it under gdb with options '-Q -D' and without any options
> without segfault) but I don't know how this option affects the emacs.

Yep, see

  http://debbugs.gnu.org/cgi/bugreport.cgi?bug=6031

It's a GCC bug.