http://groups.google.com/group/vim_dev/browse_thread/thread/1d4e5a65f0afe223
--
Summary: vim crashes on startup when compiled with -O3 but works
with -O2
Product: gcc
Version: 4.3.2
Status: UNCONFIRMED
Severity: normal
--- Comment #4 from dominique dot pelle at gmail dot com 2008-11-15 21:21
---
I tried the suggestion of Richard Guenther in his previous comments. That is
changing vim's code as follows:
cvs diff: CVS password file /home/pel/.cvspass does not exist - creating a new
file
Index: e
--- Comment #7 from dominique dot pelle at gmail dot com 2008-11-16 13:48
---
reading through the man page of gcc, I stumbled upon this in
the section about -O2:
==
NOTE: In Ubuntu 8.10 and later versions, -D_FORTIFY_SOURCE=2
is set by
--- Comment #8 from dominique dot pelle at gmail dot com 2008-11-16 14:06
---
I should add that building with -O3 -D_FORTIFY_SOURCE=1 also
works which is better.
Reading about _FORTIFY_SOURCE in the following link, everything
makes sense now.
Snippet from http://mail-index.netbsd.org