From owner-svn-src-head@FreeBSD.ORG Fri Dec 6 21:44:14 2013 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 6B39B4F5; Fri, 6 Dec 2013 21:44:14 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 588F9134C; Fri, 6 Dec 2013 21:44:14 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id rB6LiE4L041687; Fri, 6 Dec 2013 21:44:14 GMT (envelope-from kib@svn.freebsd.org) Received: (from kib@localhost) by svn.freebsd.org (8.14.7/8.14.7/Submit) id rB6LiENS041686; Fri, 6 Dec 2013 21:44:14 GMT (envelope-from kib@svn.freebsd.org) Message-Id: <201312062144.rB6LiENS041686@svn.freebsd.org> From: Konstantin Belousov Date: Fri, 6 Dec 2013 21:44:14 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r259045 - head/sys/conf X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Dec 2013 21:44:14 -0000 Author: kib Date: Fri Dec 6 21:44:13 2013 New Revision: 259045 URL: http://svnweb.freebsd.org/changeset/base/259045 Log: Disallow optimizations which potentially remove boundary checks for signed values due to a compiler authors considering integer overflow as impossible. The change follows suit of other projects taking the same measure. Sponsored by: The FreeBSD Foundation MFC after: 1 week Modified: head/sys/conf/kern.mk Modified: head/sys/conf/kern.mk ============================================================================== --- head/sys/conf/kern.mk Fri Dec 6 21:39:45 2013 (r259044) +++ head/sys/conf/kern.mk Fri Dec 6 21:44:13 2013 (r259045) @@ -148,6 +148,12 @@ INLINE_LIMIT?= 8000 CFLAGS+= -ffreestanding # +# Do not allow a compiler to optimize out overflow checks for signed +# types. +# +CFLAGS+= -fno-strict-overflow + +# # GCC SSP support # .if ${MK_SSP} != "no" && ${MACHINE_CPUARCH} != "ia64" && \