3ef2ca
To: vim_dev@googlegroups.com
3ef2ca
Subject: Patch 7.4.510
3ef2ca
Fcc: outbox
3ef2ca
From: Bram Moolenaar <Bram@moolenaar.net>
3ef2ca
Mime-Version: 1.0
3ef2ca
Content-Type: text/plain; charset=UTF-8
3ef2ca
Content-Transfer-Encoding: 8bit
3ef2ca
------------
3ef2ca
3ef2ca
Patch 7.4.510
3ef2ca
Problem:    "-fwrapv" argument breaks use of cproto.
3ef2ca
Solution:   Remove the alphabetic arguments in a drastic way.
3ef2ca
Files:	    src/Makefile
3ef2ca
3ef2ca
3ef2ca
*** ../vim-7.4.509/src/Makefile	2014-11-05 18:05:48.652441306 +0100
3ef2ca
--- src/Makefile	2014-11-12 15:24:56.357941730 +0100
3ef2ca
***************
3ef2ca
*** 1779,1791 ****
3ef2ca
  proto: $(PRO_AUTO) $(PRO_MANUAL)
3ef2ca
  
3ef2ca
  # Filter out arguments that cproto doesn't support.
3ef2ca
! # Don't pass "-pthread" to cproto, it sees it as a list of individual flags.
3ef2ca
! # Don't pass "-fstack-protector" to cproto, for the same reason.
3ef2ca
! # Don't pass "-g" to cproto.
3ef2ca
  # The -E"gcc -E" argument must be separate to avoid problems with shell
3ef2ca
  # quoting.
3ef2ca
  CPROTO = cproto $(PROTO_FLAGS) -DPROTO \
3ef2ca
! 	 `echo '$(LINT_CFLAGS)' | sed -e 's/-pthread//g' -e 's/-fstack-protector//g' -e 's/\ -g\ / /g'`
3ef2ca
  
3ef2ca
  ### Would be nice if this would work for "normal" make.
3ef2ca
  ### Currently it only works for (Free)BSD make.
3ef2ca
--- 1779,1790 ----
3ef2ca
  proto: $(PRO_AUTO) $(PRO_MANUAL)
3ef2ca
  
3ef2ca
  # Filter out arguments that cproto doesn't support.
3ef2ca
! # Don't pass "-pthread", "-fwrapv" and similar arguments to cproto, it sees
3ef2ca
! # them as a list of individual flags.
3ef2ca
  # The -E"gcc -E" argument must be separate to avoid problems with shell
3ef2ca
  # quoting.
3ef2ca
  CPROTO = cproto $(PROTO_FLAGS) -DPROTO \
3ef2ca
! 	 `echo '$(LINT_CFLAGS)' | sed -e 's/ -[a-z-]\+//g'`
3ef2ca
  
3ef2ca
  ### Would be nice if this would work for "normal" make.
3ef2ca
  ### Currently it only works for (Free)BSD make.
3ef2ca
*** ../vim-7.4.509/src/version.c	2014-11-12 15:15:34.983882077 +0100
3ef2ca
--- src/version.c	2014-11-12 15:37:34.401182559 +0100
3ef2ca
***************
3ef2ca
*** 743,744 ****
3ef2ca
--- 743,746 ----
3ef2ca
  {   /* Add new patch number below this line */
3ef2ca
+ /**/
3ef2ca
+     510,
3ef2ca
  /**/
3ef2ca
3ef2ca
-- 
3ef2ca
       [Autumn changed into Winter ... Winter changed into Spring ...  Spring
3ef2ca
       changed back into Autumn and Autumn gave Winter and Spring a miss and
3ef2ca
       went straight on into Summer ...  Until one day ...]
3ef2ca
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
3ef2ca
3ef2ca
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
3ef2ca
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
3ef2ca
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
3ef2ca
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///