summaryrefslogtreecommitdiff
path: root/share/man
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2023-10-26 17:33:36 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2023-10-26 17:33:36 +0000
commitcc59e0a13df976e7e30d46ef2e72a7edee510096 (patch)
treec1782cfe76298d6eb68ec10ddd0698f6bef291e8 /share/man
parentbd709777fcd441e506eafcae282cdd2cca3e4c8e (diff)
Make gnu99 the default for gcc 3.3.6 and 4.2.1, not gnu89.
While these versions of gcc don't have full C99 support, it is better than defaulting to C89 when building modern software. OK deraadt@
Diffstat (limited to 'share/man')
-rw-r--r--share/man/man1/gcc-local.115
1 files changed, 13 insertions, 2 deletions
diff --git a/share/man/man1/gcc-local.1 b/share/man/man1/gcc-local.1
index f1905f38ab1..e951b9d05b9 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.54 2017/06/10 16:00:27 schwarze Exp $
+.\" $OpenBSD: gcc-local.1,v 1.55 2023/10/26 17:33:35 millert Exp $
.\"
.\" Copyright (c) 2002 Marc Espie
.\" Copyright (c) 2003 Anil Madhavapeddy
@@ -25,7 +25,7 @@
.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
.\"
-.Dd $Mdocdate: June 10 2017 $
+.Dd $Mdocdate: October 26 2023 $
.Dt GCC-LOCAL 1
.Os
.Sh NAME
@@ -42,6 +42,17 @@ the software comes with specific modifications for
.Ox :
.Bl -dash
.It
+For the C programming language,
+.Nm gcc
+defaults to the
+.Em gnu99
+standard,
+not
+.Em gnu89 .
+The
+.Fl std
+option can be used to select a different language standard.
+.It
.Nm gcc
does not search under
.Pa /usr/local