[Bug c/38136] vim crashes on startup when compiled with -O3 but works with -O2

2008-11-16 Thread dominique dot pelle at gmail dot com
--- 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

[Bug c/38136] vim crashes on startup when compiled with -O3 but works with -O2

2008-11-16 Thread dominique dot pelle at gmail dot com
--- 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

[Bug c/38136] New: vim crashes on startup when compiled with -O3 but works with -O2

2008-11-15 Thread dominique dot pelle at gmail dot com
with -O2 Product: gcc Version: 4.3.2 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: dominique dot pelle at gmail dot com http

[Bug c/38136] vim crashes on startup when compiled with -O3 but works with -O2

2008-11-15 Thread dominique dot pelle at gmail dot com
--- 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: eval.c