summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorespie <espie@openbsd.org>2005-01-11 02:45:37 +0000
committerespie <espie@openbsd.org>2005-01-11 02:45:37 +0000
commitb0c67dfcc2584c3c2ea1f49f23fa1d9939379148 (patch)
tree4ab452ce2abb908ba5e5b58c5357190cc0bd3396
parentReliability fixes: (diff)
downloadwireguard-openbsd-b0c67dfcc2584c3c2ea1f49f23fa1d9939379148.tar.xz
wireguard-openbsd-b0c67dfcc2584c3c2ea1f49f23fa1d9939379148.zip
be more specific about pp log attempts.
explain about cast used as lvalues.
-rw-r--r--share/man/man1/gcc-local.116
1 files changed, 14 insertions, 2 deletions
diff --git a/share/man/man1/gcc-local.1 b/share/man/man1/gcc-local.1
index e79cb8e3334..8f56713d8de 100644
--- a/share/man/man1/gcc-local.1
+++ b/share/man/man1/gcc-local.1
@@ -1,4 +1,4 @@
-.\" $OpenBSD: gcc-local.1,v 1.6 2005/01/03 16:03:29 miod Exp $
+.\" $OpenBSD: gcc-local.1,v 1.7 2005/01/11 02:45:37 espie Exp $
.\"
.\" Copyright (c) 2002 Marc Espie
.\" Copyright (c) 2003 Anil Madhavapeddy
@@ -142,7 +142,13 @@ comes with the
stack protection extension, which is enabled by default.
This extension reorders local variable declarations and adds stack consistency
checks at run time, in order to detect stack overflows, and will attempt to
-report the problem in the system logs, and abort the faulting process.
+report the problem in the system logs by calling
+.Xr syslog 2
+with a
+.Dv LOG_CRIT
+priority message:
+.Dq stack overflow in function XXX ,
+and abort the faulting process.
It can be turned off using the
.Fl fno-stack-protector
commandline option.
@@ -188,6 +194,12 @@ on other systems is to perform this action, which can be restored for
.Ox
with
.Fl fzero-initialized-in-bss .
+.It
+On
+.Ox ,
+.Nm gcc
+does not warn for cast expressions used as lvalues outside of
+.Fl pedantic .
.El
.Sh ATTRIBUTES
The