home *** CD-ROM | disk | FTP | other *** search
/ vim.ftp.fu-berlin.de / 2015-02-03.vim.ftp.fu-berlin.de.tar / vim.ftp.fu-berlin.de / patches / 6.1.104 < prev    next >
Encoding:
Internet Message Format  |  2002-06-22  |  3.9 KB

  1. To: vim-dev@vim.org
  2. Subject: Patch 6.1.104
  3. Fcc: outbox
  4. From: Bram Moolenaar <Bram@moolenaar.net>
  5. MIME-Version: 1.0
  6. Content-Type: text/plain; charset=ISO-8859-1
  7. Content-Transfer-Encoding: 8bit
  8. ------------
  9.  
  10. Patch 6.1.104
  11. Problem:    GCC 3.1 appears to have an optimizer problem that makes test 3
  12.         crash.
  13. Solution:   For GCC 3.1 add -fno-strength-reduce to avoid the optimizer bug.
  14.         Filter out extra info from "gcc --version".
  15. Files:        src/auto/configure, src/configure.in
  16.  
  17.  
  18. *** ../vim61.103/src/configure.in    Sat Jun  8 19:05:54 2002
  19. --- src/configure.in    Tue Jun 11 22:17:45 2002
  20. ***************
  21. *** 1,6 ****
  22. --- 1,7 ----
  23.   dnl configure.in: autoconf script for Vim
  24.   
  25.   dnl Process this file with autoconf 2.12 or 2.13 to produce "configure".
  26. + dnl Does NOT work with autoconf 2.50 - 2.53!
  27.   
  28.   AC_INIT(vim.h)
  29.   AC_CONFIG_HEADER(auto/config.h:config.h.in)
  30. ***************
  31. *** 27,36 ****
  32.     test "$GCC" = yes && CFLAGS="-O2 -fno-strength-reduce -Wall"
  33.   fi
  34.   if test "$GCC" = yes; then
  35. !   gccversion=`"$CC" --version`
  36.     if test "$gccversion" = "3.0.1" -o "$gccversion" = "3.0.2"; then
  37.       echo 'GCC 3.0.x has a bug in the optimizer, disabling "-O#"'
  38.       CFLAGS=`echo "$CFLAGS" | sed 's/-O[[23456789]]/-O/'`
  39.     fi
  40.   fi
  41.   
  42. --- 28,42 ----
  43.     test "$GCC" = yes && CFLAGS="-O2 -fno-strength-reduce -Wall"
  44.   fi
  45.   if test "$GCC" = yes; then
  46. !   gccversion=`"$CC" --version | sed -e '2,$d;s/^[[^0-9]]*\([[0-9]]\.[[0-9.]]*\).*$/\1/g'`
  47.     if test "$gccversion" = "3.0.1" -o "$gccversion" = "3.0.2"; then
  48.       echo 'GCC 3.0.x has a bug in the optimizer, disabling "-O#"'
  49.       CFLAGS=`echo "$CFLAGS" | sed 's/-O[[23456789]]/-O/'`
  50. +   else
  51. +     if test "$gccversion" = "3.1" && `echo "$CFLAGS" | grep -v fno-strength-reduce >/dev/null`; then
  52. +       echo 'GCC 3.1 has a bug in the optimizer, adding "-fno-strength-reduce"'
  53. +       CFLAGS="$CFLAGS -fno-strength-reduce"
  54. +     fi
  55.     fi
  56.   fi
  57.   
  58. *** ../vim61.103/src/auto/configure    Sat Jun  8 19:05:54 2002
  59. --- src/auto/configure    Tue Jun 11 22:17:49 2002
  60. ***************
  61. *** 1113,1122 ****
  62.     test "$GCC" = yes && CFLAGS="-O2 -fno-strength-reduce -Wall"
  63.   fi
  64.   if test "$GCC" = yes; then
  65. !   gccversion=`"$CC" --version`
  66.     if test "$gccversion" = "3.0.1" -o "$gccversion" = "3.0.2"; then
  67.       echo 'GCC 3.0.x has a bug in the optimizer, disabling "-O#"'
  68.       CFLAGS=`echo "$CFLAGS" | sed 's/-O[23456789]/-O/'`
  69.     fi
  70.   fi
  71.   
  72. --- 1113,1127 ----
  73.     test "$GCC" = yes && CFLAGS="-O2 -fno-strength-reduce -Wall"
  74.   fi
  75.   if test "$GCC" = yes; then
  76. !   gccversion=`"$CC" --version | sed -e '2,$d;s/^[^0-9]*\([0-9]\.[0-9.]*\).*$/\1/g'`
  77.     if test "$gccversion" = "3.0.1" -o "$gccversion" = "3.0.2"; then
  78.       echo 'GCC 3.0.x has a bug in the optimizer, disabling "-O#"'
  79.       CFLAGS=`echo "$CFLAGS" | sed 's/-O[23456789]/-O/'`
  80. +   else
  81. +     if test "$gccversion" = "3.1" && `echo "$CFLAGS" | grep -v fno-strength-reduce >/dev/null`; then
  82. +       echo 'GCC 3.1 has a bug in the optimizer, adding "-fno-strength-reduce"'
  83. +       CFLAGS="$CFLAGS -fno-strength-reduce"
  84. +     fi
  85.     fi
  86.   fi
  87.   
  88. *** ../vim61.103/src/version.c    Sun Jun 23 13:09:02 2002
  89. --- src/version.c    Sun Jun 23 14:23:09 2002
  90. ***************
  91. *** 608,609 ****
  92. --- 608,611 ----
  93.   {   /* Add new patch number below this line */
  94. + /**/
  95. +     104,
  96.   /**/
  97.  
  98. -- 
  99. ZOOT:  I'm afraid our life must seem very dull and quiet compared to yours.
  100.        We are but eightscore young blondes, all between sixteen and
  101.        nineteen-and-a-half, cut off in this castle, with no one to protect us.
  102.        Oooh.  It is a lonely life ... bathing ...  dressing ... undressing ...
  103.        making exciting underwear....
  104.                  "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
  105.  
  106.  ///  Bram Moolenaar -- Bram@moolenaar.net -- http://www.moolenaar.net  \\\
  107. ///   Creator of Vim -- http://vim.sf.net -- ftp://ftp.vim.org/pub/vim   \\\
  108. \\\           Project leader for A-A-P -- http://www.a-a-p.org           ///
  109.  \\\  Help me helping AIDS orphans in Uganda - http://iccf-holland.org  ///
  110.