[kernel] r13974 - in dists/lenny/linux-2.6/debian: . patches/bugfix/all patches/series

Dann Frazier dannf at alioth.debian.org
Sun Jul 19 19:27:46 UTC 2009


Author: dannf
Date: Sun Jul 19 19:27:42 2009
New Revision: 13974

Log:
Use -fno-strict-overflow instead of -fwrapv (closes: #536354)

Added:
   dists/lenny/linux-2.6/debian/patches/bugfix/all/replace_fwrapv_with_fno-strict-overflow.patch
Modified:
   dists/lenny/linux-2.6/debian/changelog
   dists/lenny/linux-2.6/debian/patches/series/18

Modified: dists/lenny/linux-2.6/debian/changelog
==============================================================================
--- dists/lenny/linux-2.6/debian/changelog	Sun Jul 19 09:44:07 2009	(r13973)
+++ dists/lenny/linux-2.6/debian/changelog	Sun Jul 19 19:27:42 2009	(r13974)
@@ -14,6 +14,7 @@
 
   [ dann frazier ]
   * e1000e: add support for 82574L controllers (closes: #534519)
+  * Use -fno-strict-overflow instead of -fwrapv (closes: #536354)
 
   [ Moritz Muehlenhoff ]
   * fbdev/atyfb: Fix display corruption on some PowerMacs & PowerBooks

Added: dists/lenny/linux-2.6/debian/patches/bugfix/all/replace_fwrapv_with_fno-strict-overflow.patch
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ dists/lenny/linux-2.6/debian/patches/bugfix/all/replace_fwrapv_with_fno-strict-overflow.patch	Sun Jul 19 19:27:42 2009	(r13974)
@@ -0,0 +1,54 @@
+commit a137802ee839ace40079bebde24cfb416f73208a
+Author: Linus Torvalds <torvalds at linux-foundation.org>
+Date:   Sun Jul 12 11:25:04 2009 -0700
+
+    Don't use '-fwrapv' compiler option: it's buggy in gcc-4.1.x
+    
+    This causes kernel images that don't run init to completion with certain
+    broken gcc versions.
+    
+    This fixes kernel bugzilla entry:
+    	http://bugzilla.kernel.org/show_bug.cgi?id=13012
+    
+    I suspect the gcc problem is this:
+    	http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28230
+    
+    Fix the problem by using the -fno-strict-overflow flag instead, which
+    not only does not exist in the known-to-be-broken versions of gcc (it
+    was introduced later than fwrapv), but seems to be much less disturbing
+    to gcc too: the difference in the generated code by -fno-strict-overflow
+    are smaller (compared to using neither flag) than when using -fwrapv.
+    
+    Reported-by: Barry K. Nathan <barryn at pobox.com>
+    Pushed-by: Frans Pop <elendil at planet.nl>
+    Cc: Andrew Morton <akpm at linux-foundation.org>
+    Cc: stable at kernel.org
+    Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
+
+Adjusted to apply to Debian's 2.6.26 by dann frazier <dannf at debian.org>
+
+diff -urpN a/Makefile b/Makefile
+--- a/Makefile	2009-07-18 18:33:02.000000000 -0600
++++ b/Makefile	2009-07-18 18:39:39.000000000 -0600
+@@ -321,15 +321,18 @@ KBUILD_CPPFLAGS := -D__KERNEL__ $(LINUXI
+ KBUILD_CFLAGS   := -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs \
+ 		   -fno-strict-aliasing -fno-common \
+ 		   -Werror-implicit-function-declaration
+-KBUILD_CFLAGS	+= $(call cc-option,-fwrapv)
++
++# .kernelvariables must be included before cc-option
++# since it may change the value of $(CC)
++-include .kernelvariables
++
++KBUILD_CFLAGS	+= $(call cc-option,-fno-strict-overflow)
+ KBUILD_AFLAGS   := -D__ASSEMBLY__
+ 
+ # Read KERNELRELEASE from include/config/kernel.release (if it exists)
+ KERNELRELEASE = $(shell cat include/config/kernel.release 2> /dev/null)
+ KERNELVERSION = $(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION)
+ 
+--include .kernelvariables
+-
+ # Architecture as present in compile.h
+ UTS_MACHINE 	:= $(ARCH)
+ SRCARCH 	:= $(ARCH)

Modified: dists/lenny/linux-2.6/debian/patches/series/18
==============================================================================
--- dists/lenny/linux-2.6/debian/patches/series/18	Sun Jul 19 09:44:07 2009	(r13973)
+++ dists/lenny/linux-2.6/debian/patches/series/18	Sun Jul 19 19:27:42 2009	(r13974)
@@ -4,3 +4,4 @@
 + features/all/e1000e-test-for-unusable-MSI-support.patch
 + features/all/e1000e-add-support-for-82574l.patch
 + bugfix/all/atyfb-fix-display-corruption-on-ppc.patch
++ bugfix/all/replace_fwrapv_with_fno-strict-overflow.patch



More information about the Kernel-svn-changes mailing list