From 38f4d544860a9fc1f90958716e6de3b4758da8f3 Mon Sep 17 00:00:00 2001 From: jsg Date: Tue, 6 Jun 2017 09:42:09 +0000 Subject: [PATCH] mention -fwrapv being on by default --- share/man/man1/clang-local.1 | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/share/man/man1/clang-local.1 b/share/man/man1/clang-local.1 index 058f57d28d3..093d42cc847 100644 --- a/share/man/man1/clang-local.1 +++ b/share/man/man1/clang-local.1 @@ -1,4 +1,4 @@ -.\" $OpenBSD: clang-local.1,v 1.5 2017/03/12 01:21:32 jsg Exp $ +.\" $OpenBSD: clang-local.1,v 1.6 2017/06/06 09:42:09 jsg Exp $ .\" .\" Copyright (c) 2016 Pascal Stumpf .\" @@ -15,7 +15,7 @@ .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. .\" .\" -.Dd $Mdocdate: March 12 2017 $ +.Dd $Mdocdate: June 6 2017 $ .Dt CLANG-LOCAL 1 .Os .Sh NAME @@ -69,6 +69,12 @@ flag. .It Color diagnostic messages are disabled by default and can be re-enabled with .Fl fdiagnostics-color . +.It +The +.Fl fwrapv +option to treat signed integer overflows as defined is enabled by default to +prevent dangerous optimizations which could remove security critical overflow +checks. .El .Sh SEE ALSO .Xr clang 1 -- 2.20.1