summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2005-01-11 02:45:38 +0000
committerMarc Espie <espie@cvs.openbsd.org>2005-01-11 02:45:38 +0000
commit1d0a8791c0c199cb1e14b26a3eb86c900d687468 (patch)
treef15c0f5e17f264899aa3c389bbca5f03db7e7525
parentcd81217034d23fa8aa970c8780709caf30d4b151 (diff)
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