4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=ISO-8859-1
7 Content-Transfer-Encoding: 8bit
11 Problem: When profiling on Linux Vim exits early. (Liu Yubao)
12 Solution: When profiling don't exit on SIGPROF.
13 Files: src/Makefile, src/os_unix.c
16 *** ../vim-7.1.272/src/Makefile Wed Mar 12 12:23:18 2008
17 --- src/Makefile Wed Mar 12 13:11:07 2008
20 # For unknown reasons adding "-lc" fixes a linking problem with GCC. That's
21 # probably a bug in the "-pg" implementation.
22 # Need to recompile everything after changing this: "make clean" "make".
23 ! #PROFILE_CFLAGS = -pg -g
25 #PROFILE_LIBS = -pg -lc
28 # For unknown reasons adding "-lc" fixes a linking problem with GCC. That's
29 # probably a bug in the "-pg" implementation.
30 # Need to recompile everything after changing this: "make clean" "make".
31 ! #PROFILE_CFLAGS = -pg -g -DWE_ARE_PROFILING
33 #PROFILE_LIBS = -pg -lc
35 *** ../vim-7.1.272/src/os_unix.c Sun Feb 10 22:25:12 2008
36 --- src/os_unix.c Wed Mar 5 22:15:41 2008
40 {SIGVTALRM, "VTALRM", TRUE},
42 ! #if defined(SIGPROF) && !defined(FEAT_MZSCHEME)
43 ! /* MzScheme uses SIGPROF for its own needs */
44 {SIGPROF, "PROF", TRUE},
49 {SIGVTALRM, "VTALRM", TRUE},
51 ! #if defined(SIGPROF) && !defined(FEAT_MZSCHEME) && !defined(WE_ARE_PROFILING)
52 ! /* MzScheme uses SIGPROF for its own needs; On Linux with profiling
53 ! * this makes Vim exit. WE_ARE_PROFILING is defined in Makefile. */
54 {SIGPROF, "PROF", TRUE},
57 *** ../vim-7.1.272/src/version.c Wed Mar 12 12:22:56 2008
58 --- src/version.c Wed Mar 12 13:08:59 2008
62 { /* Add new patch number below this line */
68 hundred-and-one symptoms of being an internet addict:
69 114. You are counting items, you go "0,1,2,3,4,5,6,7,8,9,A,B,C,D...".
71 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
72 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
73 \\\ download, build and distribute -- http://www.A-A-P.org ///
74 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///