From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.3 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS,HTML_MESSAGE, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: from zero.zsh.org (zero.zsh.org [IPv6:2a02:898:31:0:48:4558:7a:7368]) by inbox.vuxu.org (Postfix) with ESMTP id E2F1D298B8 for ; Wed, 13 Mar 2024 02:51:07 +0100 (CET) ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1710294667; b=qc/EhQCY5toHgmClN/1oFIwrhWkVazLO9kIFoHzrDuGA9eYc7adNZpDMUdNSvZaciTKGvnBZnh PKsGA7ZSBJgNgnmYw0p3h5Bas6ia/E2rUrhIO0gVL8OdoRTslrZSSlc2zlqGfq4vS5yD7JR8bn apceLWSfXg7J5rShIjwIhFrxKVeV7gK1krfHOUgiKTO8+LGq5Z12g5H00kzrO56kqsXTcwHVJJ tCBKlDtB1ncryIcFkgkSoFAB8R9va/qZkKVsc/WJ1SpA8NowkktKTcac8ZHeeWlicmbagost6L AiWob+kDupLTqHBC8wVTAqJweesjymtEL3XzpTahSMRxog==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (iris.zentaur.org) smtp.remote-ip=198.58.127.206; dkim=pass header.d=zentaur.org header.s=dkim20200120 header.a=rsa-sha256; dmarc=pass header.from=zentaur.org; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1710294667; bh=E1aPrn4GMY/I7azX3pq4zqsZSnK3JPXt4JaweFKO8hQ=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:In-Reply-To:From:References:To:Subject:MIME-Version:Date: Message-ID:Content-Type:DKIM-Signature:DKIM-Signature; b=Vk0+yCIf3JQ3AkLGvUonUzwoZdpTgXSyXz7w49uPbj1/RZ2UTgCw5zZRS6zZetrec/p3wHb26H RTHscwyjvaZjF5X6YceDM84aFq+HicWt7KOJ0yOBqWzgemv727xoD/lkHtqqSPZbpI4m608/Aj f3DDE+rm1slMbgundY7OOZYdqeHhw7wuJ+otl2/VGh3vKHJCUps7uj3oocoALb4ZbzN5Ztah41 XqBC0Od2z2se18sVNA6EXh0hbkm4LEUhopnaKCjDPFg8U1mtCFWkIMiq93h+ddKUEHSRt+yJjP Gf3Ap+KXAh5Vkollzcj2nxvcnzaSU140/NU5caXaMwYhGQ==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20210803; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:In-Reply-To:From:References:To: Subject:MIME-Version:Date:Message-ID:Content-Type:Reply-To:Cc: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=zIirEifkApFrrFs8YARYkpVbrkAbDWWLym8zjW5L5pE=; b=iobWxqHEFeHPmv4Vvx0M0/rsSI WGg6vkGRY6CMaLwi4ZpO1iZQzCxIuolfEMMvB91WMWlY3fvYEEy4XXbeif7GlXbymeIxZ4NZ95uz6 ajz260ebvWwGD5ocyXq7zXUbQW7xJb4OuOpMPoM2NMLXgkHd+V9QlDo4NnUA+rL200e8/orflVwYM NVF9hbfwfVM5d9a0xoRXUaw79+Yc+nD2hbFT1pwd3ThNKjVfSVY8vj7nxmlnqjWi3je0R/e29Obun SvbTCbkJy0Ffa1HAZUNJskVzf6rTAZFVwmnw46RkNzdTB8wtcdI/Dodl5SI9CMbQ5zLjkIrEF3IG3 rM8gbEUg==; Received: by zero.zsh.org with local id 1rkDlr-000N9H-54; Wed, 13 Mar 2024 01:51:07 +0000 Authentication-Results: zsh.org; iprev=pass (iris.zentaur.org) smtp.remote-ip=198.58.127.206; dkim=pass header.d=zentaur.org header.s=dkim20200120 header.a=rsa-sha256; dmarc=pass header.from=zentaur.org; arc=none Received: from iris.zentaur.org ([198.58.127.206]:50360) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1rkDlH-000Moc-JP; Wed, 13 Mar 2024 01:50:33 +0000 Received: from iris.zentaur.org (localhost [127.0.0.1]) by iris.zentaur.org (Postfix) with ESMTP id 4TvYPL3mjSz3wZv for ; Wed, 13 Mar 2024 01:50:30 +0000 (UTC) Authentication-Results: iris.zentaur.org (amavis); dkim=pass (2048-bit key) reason="pass (just generated, assumed good)" header.d=zentaur.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=zentaur.org; h= in-reply-to:from:references:to:content-language:subject :user-agent:mime-version:date:message-id:content-type; s= dkim20200120; t=1710294629; x=1710298230; bh=E1aPrn4GMY/I7azX3pq 4zqsZSnK3JPXt4JaweFKO8hQ=; b=IHUhOwYG0QebHh7be4wzPs1aKMyTccp6CPr zIebd0l7gTNHxaf8GhsJzQGrS6S2rvibbXrx+U6RUNP9Nchm7vx8+a+I0Q1w8adl mg1x5Io1s+krBjuc8qGpZu0WvzCyImySnZQ8UKTAs4wfot85+SkYM5rviqAl5FaR XQDQABj2Ygbh8cS+dMZ9B1bMPbsCN0jCvM/vK9t4OmCiDANpXkDmJqmcudppJPxr 3Obw4C0aNDboVE6PIJ/2B2YBZTQWMZU7lX8q4b2/5py5A1kUNPS8M6k7zRIaEkqF xwO/c/Hsq/QNn+uIF2+zo4GJ+9cHFXR9g6yV+n2btD2zK6ggJKA== X-Virus-Scanned: amavis at iris.zentaur.org Received: from iris.zentaur.org ([127.0.0.1]) by iris.zentaur.org (iris.zentaur.org [127.0.0.1]) (amavis, port 10026) with ESMTP id PEAzXCCNDjM8 for ; Wed, 13 Mar 2024 01:50:29 +0000 (UTC) Received: from [IPV6:2605:a601:a57c:ee00::4000] (unknown [IPv6:2605:a601:a57c:ee00::4000]) by iris.zentaur.org (Postfix) with ESMTPSA id 4TvYPK4M8Kz3wZt for ; Wed, 13 Mar 2024 01:50:29 +0000 (UTC) Content-Type: multipart/alternative; boundary="------------wNsFnolCqoy6tUDLSW8Y9Z1U" Message-ID: Date: Tue, 12 Mar 2024 20:50:29 -0500 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: ANSI C standard of zsh Content-Language: en-US To: zsh-workers@zsh.org References: <4da53188-feb2-42d2-9294-899715991be1@zentaur.org> From: Clinton Bunch In-Reply-To: <4da53188-feb2-42d2-9294-899715991be1@zentaur.org> X-Seq: 52743 Archived-At: X-Loop: zsh-workers@zsh.org Errors-To: zsh-workers-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-workers-request@zsh.org X-no-archive: yes List-Id: List-Help: , List-Subscribe: , List-Unsubscribe: , List-Post: List-Owner: List-Archive: This is a multi-part message in MIME format. --------------wNsFnolCqoy6tUDLSW8Y9Z1U Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable c89 will not build 5.9 on Solaris On FreeBSD configure with CC=3Dc89 fails =C2=A0CC=3D'cc -std=3Dc89' is overridden by configure with -std=3Dgnu11 On 3/12/2024 16:44, Clinton Bunch wrote: > > I was looking at the development guide and saw this: > > The primary language is ANSI C as defined by the 1989 standard, but the > code should always be compatible with late K&R era compilers ("The C > Programming Language" 1st edition, plus "void" and "enum"). There a= re > many hacks to avoid the need to actually restrict the code to K&R C = -- > check out the configure tests -- but always bear the compatibility > requirements in mind. In particular, preprocessing directives must > have the "#" unindented, and string pasting is not available. > > 5.9 does not compile with gcc's c89 on EL 8 or 9 (Rocky specifically). > I intend to test FreeBSD and Solaris as well, but haven't yet. > > I will point out the C99 standard is now a quarter century old. I=20 > propose that we update the development guide to remove the bit about=20 > the 1989=C2=A0standard (much less K&R compatibility) since it is no lon= ger=20 > true, and I personally question if it even makes sense as a goal 30+=20 > years in to development. --------------wNsFnolCqoy6tUDLSW8Y9Z1U Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
c89 will not build 5.9 on Solaris

On FreeBSD

configure with CC=3Dc89 fails
=C2=A0CC=3D'cc -std=3Dc89' is overridd= en by configure with -std=3Dgnu11

On 3/12/2024 16:44, Clinton Bunch wrote:

I was looking at the development guide and saw this:

The primary language is ANSI C as defined by the 1989 standard=
, but the
  code should always be compatible with late K&R era compilers ("The =
C
  Programming Language" 1st edition, plus "void" and "enum").  There are
  many hacks to avoid the need to actually restrict the code to K&R C=
 --
  check out the configure tests -- but always bear the compatibility
  requirements in mind.  In particular, preprocessing directives must
  have the "#" unindented, and string pasting is not available.

5.9 does not compile with gcc's c89 on EL 8 or 9 (Rocky specif=
ically).
I intend to test FreeBSD and Solaris as well, but haven't yet.

I will point out the C99 standard is now a quarter century old. I propose that we update the development guide to remove the bit about the 1989=C2=A0standard (much less K&R compatibility) sinc= e it is no longer true, and I personally question if it even makes sense as a goal 30+ years in to development.


--------------wNsFnolCqoy6tUDLSW8Y9Z1U--