Karsten Hopp 36ef46
To: vim-dev@vim.org
Karsten Hopp 36ef46
Subject: Patch 7.1.273
Karsten Hopp 36ef46
Fcc: outbox
Karsten Hopp 36ef46
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 36ef46
Mime-Version: 1.0
Karsten Hopp 36ef46
Content-Type: text/plain; charset=ISO-8859-1
Karsten Hopp 36ef46
Content-Transfer-Encoding: 8bit
Karsten Hopp 36ef46
------------
Karsten Hopp 36ef46
Karsten Hopp 36ef46
Patch 7.1.273
Karsten Hopp 36ef46
Problem:    When profiling on Linux Vim exits early. (Liu Yubao)
Karsten Hopp 36ef46
Solution:   When profiling don't exit on SIGPROF.
Karsten Hopp 36ef46
Files:	    src/Makefile, src/os_unix.c
Karsten Hopp 36ef46
Karsten Hopp 36ef46
Karsten Hopp 36ef46
*** ../vim-7.1.272/src/Makefile	Wed Mar 12 12:23:18 2008
Karsten Hopp 36ef46
--- src/Makefile	Wed Mar 12 13:11:07 2008
Karsten Hopp 36ef46
***************
Karsten Hopp 36ef46
*** 545,551 ****
Karsten Hopp 36ef46
  # For unknown reasons adding "-lc" fixes a linking problem with GCC.  That's
Karsten Hopp 36ef46
  # probably a bug in the "-pg" implementation.
Karsten Hopp 36ef46
  # Need to recompile everything after changing this: "make clean" "make".
Karsten Hopp 36ef46
! #PROFILE_CFLAGS = -pg -g
Karsten Hopp 36ef46
  #PROFILE_LIBS = -pg
Karsten Hopp 36ef46
  #PROFILE_LIBS = -pg -lc
Karsten Hopp 36ef46
  
Karsten Hopp 36ef46
--- 545,551 ----
Karsten Hopp 36ef46
  # For unknown reasons adding "-lc" fixes a linking problem with GCC.  That's
Karsten Hopp 36ef46
  # probably a bug in the "-pg" implementation.
Karsten Hopp 36ef46
  # Need to recompile everything after changing this: "make clean" "make".
Karsten Hopp 36ef46
! #PROFILE_CFLAGS = -pg -g -DWE_ARE_PROFILING
Karsten Hopp 36ef46
  #PROFILE_LIBS = -pg
Karsten Hopp 36ef46
  #PROFILE_LIBS = -pg -lc
Karsten Hopp 36ef46
  
Karsten Hopp 36ef46
*** ../vim-7.1.272/src/os_unix.c	Sun Feb 10 22:25:12 2008
Karsten Hopp 36ef46
--- src/os_unix.c	Wed Mar  5 22:15:41 2008
Karsten Hopp 36ef46
***************
Karsten Hopp 36ef46
*** 269,276 ****
Karsten Hopp 36ef46
  #ifdef SIGVTALRM
Karsten Hopp 36ef46
      {SIGVTALRM,	    "VTALRM",	TRUE},
Karsten Hopp 36ef46
  #endif
Karsten Hopp 36ef46
! #if defined(SIGPROF) && !defined(FEAT_MZSCHEME)
Karsten Hopp 36ef46
!     /* MzScheme uses SIGPROF for its own needs */
Karsten Hopp 36ef46
      {SIGPROF,	    "PROF",	TRUE},
Karsten Hopp 36ef46
  #endif
Karsten Hopp 36ef46
  #ifdef SIGXCPU
Karsten Hopp 36ef46
--- 269,277 ----
Karsten Hopp 36ef46
  #ifdef SIGVTALRM
Karsten Hopp 36ef46
      {SIGVTALRM,	    "VTALRM",	TRUE},
Karsten Hopp 36ef46
  #endif
Karsten Hopp 36ef46
! #if defined(SIGPROF) && !defined(FEAT_MZSCHEME) && !defined(WE_ARE_PROFILING)
Karsten Hopp 36ef46
!     /* MzScheme uses SIGPROF for its own needs; On Linux with profiling
Karsten Hopp 36ef46
!      * this makes Vim exit.  WE_ARE_PROFILING is defined in Makefile.  */
Karsten Hopp 36ef46
      {SIGPROF,	    "PROF",	TRUE},
Karsten Hopp 36ef46
  #endif
Karsten Hopp 36ef46
  #ifdef SIGXCPU
Karsten Hopp 36ef46
*** ../vim-7.1.272/src/version.c	Wed Mar 12 12:22:56 2008
Karsten Hopp 36ef46
--- src/version.c	Wed Mar 12 13:08:59 2008
Karsten Hopp 36ef46
***************
Karsten Hopp 36ef46
*** 668,669 ****
Karsten Hopp 36ef46
--- 668,671 ----
Karsten Hopp 36ef46
  {   /* Add new patch number below this line */
Karsten Hopp 36ef46
+ /**/
Karsten Hopp 36ef46
+     273,
Karsten Hopp 36ef46
  /**/
Karsten Hopp 36ef46
Karsten Hopp 36ef46
-- 
Karsten Hopp 36ef46
hundred-and-one symptoms of being an internet addict:
Karsten Hopp 36ef46
114. You are counting items, you go "0,1,2,3,4,5,6,7,8,9,A,B,C,D...".
Karsten Hopp 36ef46
Karsten Hopp 36ef46
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 36ef46
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 36ef46
\\\        download, build and distribute -- http://www.A-A-P.org        ///
Karsten Hopp 36ef46
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///