1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-23 11:18:54 +00:00

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
This commit is contained in:
Konstantin Belousov 2013-12-06 21:44:13 +00:00
parent 16a93df7eb
commit 1efe86bb37
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=259045

View File

@ -147,6 +147,12 @@ INLINE_LIMIT?= 8000
# #
CFLAGS+= -ffreestanding CFLAGS+= -ffreestanding
#
# Do not allow a compiler to optimize out overflow checks for signed
# types.
#
CFLAGS+= -fno-strict-overflow
# #
# GCC SSP support # GCC SSP support
# #