From nobody Thu Nov 28 21:05:07 2024 X-Original-To: freebsd-standards@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Xzpjr5bScz5fGgp for ; Thu, 28 Nov 2024 21:05:20 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-pl1-x629.google.com (mail-pl1-x629.google.com [IPv6:2607:f8b0:4864:20::629]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Xzpjr3h9Cz3wvw for ; Thu, 28 Nov 2024 21:05:20 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-pl1-x629.google.com with SMTP id d9443c01a7336-214f6ed9f17so9946295ad.1 for ; Thu, 28 Nov 2024 13:05:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20230601.gappssmtp.com; s=20230601; t=1732827919; x=1733432719; darn=freebsd.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=QOmrw48eTdAvxF0nSZ3dVxpyzQyyXU4EyX1bGJ+iR0g=; b=OL/tPTW9vSc9c8Cxl3qDbJMc+Nj3rxYkgerohBCIcda9Gq97qOQz1uuQgMfxbWdmqP G+hOJ0A3Ordz0l5JC8Zg2rY6agtOSB0Whrac6tUbldmOLfFSTc3VBA7HVCYprD4TBzLG Nvpn57pjDTvbXk8J1kChYNdAUOBdOSWb9YE9eaRJefE6Cc6c6kZd99PEqBKN5A2APV6J ZoqyXMUtRKRHbakVZrErPcicAwLzkVbEVYW5IJ1uyhm9S9voQpO1wg9XdWAOm4VmMtwV sXqIKXQas5q+KSDQII33uxeZRP54RaXDaCmDCX+BGAAH37n8rM5FJO+RSO6XpxAELcU8 gAhA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1732827919; x=1733432719; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=QOmrw48eTdAvxF0nSZ3dVxpyzQyyXU4EyX1bGJ+iR0g=; b=Q0uc3gRLsumgnC77qoueOzR98t3MIQqsIQjrUB6kAxhQ7FBGQv0hXMsfkBLUWH0+f8 SX4H5k3PWPpg72eHSDB0YPVK+C6NUAjztMWEjAIqJuUNpL5n/PCwBSxQuICXnw/S3GDl n3/I4OXgRNyyiRYz6cdom3cQU91eqzyUVxtY+Xpd1PSLPNz1NubI9VCbEvscYRblnriJ 8CuViuSSdfo2n83RSNtOfKUf+PZKJTAsGQMsWcRrVjnW7vQ1xXXQkmK2TEsbxEz+dfQ5 PtWKJLiKwMBt9mCrJ9H5likpDHYstF94CxYiNwObnB6swmEvBbLoShIITOStmUvR7gZK 5dIw== X-Gm-Message-State: AOJu0YxfGLn3Zw7hsuDKZp+qRz5Qe8HvhrG41zejqo0+c85/JIKuHKiL aVvPY2fWhqobznQKc+BlxQ+8I3FeoVPZyS6o23PDtAuPAx6DTs18AvK+q4lJRBC5wHFebmnfWIL RsQ2IA1AqtkE59I65PoF4Ab381HV7pyKfxRUVTA== X-Gm-Gg: ASbGncsRczPTRZAJ/jMxc8S8d8/e/rLg+Pk3rxiL1Qxn+SCrA7urAG/k3AV3WvzLD0a eGHbtNQYMDX+mCx+LYozQuWtZhJ/JVbXB1OSrE6NGOlFzWCaou7Je43HWolo= X-Google-Smtp-Source: AGHT+IHSaHtlgKpIK7hUL8OJE9sIO5OMyoIFs7UsLIjMvGHW0Fe7t7MsoxXx2ECb0e0zdEidb/A60xXrs035l1SGw6s= X-Received: by 2002:a17:902:e752:b0:212:4739:27b2 with SMTP id d9443c01a7336-215010861afmr93699555ad.5.1732827919007; Thu, 28 Nov 2024 13:05:19 -0800 (PST) List-Id: Standards compliance List-Archive: https://lists.freebsd.org/archives/freebsd-standards List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-standards@freebsd.org Sender: owner-freebsd-standards@FreeBSD.org MIME-Version: 1.0 References: In-Reply-To: From: Warner Losh Date: Thu, 28 Nov 2024 14:05:07 -0700 Message-ID: Subject: Re: /usr/share/mk/sys.mk for main [so: 15]: .if defined(%POSIX) and CC ?= c89 and CFLAGS ?= -O [still appropriate?] To: Mark Millard Cc: FreeBSD Standards Content-Type: multipart/alternative; boundary="00000000000091e15b0627ff7054" X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US] X-Rspamd-Queue-Id: 4Xzpjr3h9Cz3wvw X-Spamd-Bar: ---- --00000000000091e15b0627ff7054 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, Nov 28, 2024, 1:58=E2=80=AFPM Mark Millard wrot= e: > With the recent POSIX 2024 activity I'm wondering if sys.mk having: > > .if defined(%POSIX) > CC ?=3D c89 > CFLAGS ?=3D -O > .else > > may be outdated for main [so: 15 as stands] and may have > been so for some time. > > > https://pubs.opengroup.org/onlinepubs/9799919799/ (Issue 8) > reports a base document set including: > > ISO/IEC 9899:2018, Programming Languages =E2=80=94 C (C17) > > Also: c17 =E2=80=94 compile standard C programs > (FreeBSD does not have c17 as a command yet.) > > > https://pubs.opengroup.org/onlinepubs/9699919799.orig/ (Issue 7) > reports a base document set including: > > ISO/IEC 9899:1999, Programming Languages - C > ISO/IEC 9899:1999/Cor.1:2001(E) > ISO/IEC 9899:1999/Cor.2:2004(E) > ISO/IEC 9899:1999/Cor.3 > > also: c99 - compile standard C programs > > (FreeBSD has c99 .) > What does the section on make specify? I suspect that issue 7 says c99 here. We are no where close to adding all or even most of the issue 8 features, though. Warner =3D=3D=3D > Mark Millard > marklmi at yahoo.com > > > --00000000000091e15b0627ff7054 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


On Thu, Nov 28, 2024, 1:58=E2=80=AFPM Mark Millard <= ;marklmi@yahoo.com> wrote:
<= /div>
With the recent POSIX 2024 activity I&#= 39;m wondering if sys.mk having:

.if defined(%POSIX)
CC=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ?=3D=C2=A0 =C2=A0 =C2=A0= c89
CFLAGS=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ?=3D=C2=A0 =C2=A0 =C2=A0 -O
.else

may be outdated for main [so: 15 as stands] and may have
been so for some time.


https://pubs.opengroup.org/onlinepubs/97= 99919799/ (Issue 8)
reports a base document set including:

ISO/IEC 9899:2018, Programming Languages =E2=80=94 C (C17)

Also: c17 =E2=80=94 compile standard C programs
(FreeBSD does not have c17 as a command yet.)


https://pubs.opengroup.org/onlinepu= bs/9699919799.orig/ (Issue 7)
reports a base document set including:

ISO/IEC 9899:1999, Programming Languages - C
ISO/IEC 9899:1999/Cor.1:2001(E)
ISO/IEC 9899:1999/Cor.2:2004(E)
ISO/IEC 9899:1999/Cor.3

also: c99 - compile standard C programs

(FreeBSD has c99 .)

What does the section on make specify? I suspect that is= sue 7 says c99 here. We are no where close to adding all or even most of th= e issue 8 features, though.

Warner

=3D=3D=3D
Mark Millard
marklmi at yahoo.com


--00000000000091e15b0627ff7054--