From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qt1-x82e.google.com (mail-qt1-x82e.google.com [IPv6:2607:f8b0:4864:20::82e]) by sourceware.org (Postfix) with ESMTPS id 805F43858D1E for ; Wed, 20 Apr 2022 22:11:24 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 805F43858D1E Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-qt1-x82e.google.com with SMTP id fu34so2038393qtb.8 for ; Wed, 20 Apr 2022 15:11:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=UFGj9WhukEchs6JimpQln05STiquF/dt9/hZVhkkSBQ=; b=Kvd/Ytszn0qvsDZNOqh+vFLtMyX0MJ+qRWOJeBmpk0D9cFxXvouW6u0hik8WFysGRl yj90cXjWcRR++ilFxuEXCxaObqiZtNSvR5s8vVDP7UQjoZIMuiyp+WRwcQTBQDcS80dP pwBpd6sFtVLBkprcSVtFK8wADVl/IBqHRIbsACQ0KMjH4fjmRKl1e4KorSTfVM8sVSTY NfE7+qirmainfIJHOj9hJzJQcYwe4jTaRn9MRWu6hFxKalrz0yKohuwViXEk3dTPrYg7 DDAcbLsKfhxslCf+F1f9R/Ufv4hJrrhBN4B/wmyvI4MjUlX84aDLw6rnPzZtbFHDnupS LkGw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=UFGj9WhukEchs6JimpQln05STiquF/dt9/hZVhkkSBQ=; b=O9/h5ze05WRVGXBDhleBzDPy+m3qAbcjM+4MtgnTym6WsEsCyUiHwx/Ao8rtgVFPyE mChaIG9eX6cHhHY1FsY8o2Nmx9iJ9w3a7QN/jzBEYAP0GFBi9oesEEaBDU9Eh7Mk+vym /1O77o4jw/0ZvAtn6SUq61khfj6s3jPbTqwSTdU+8QzoGM/oU24MVvOSX4kfQLmB4YRd GY20qVb/CR/pKLBDV82H1sH5KJWMWb6Dl8pjLnvVd582gGxbuKf1sGC8likgg0WkS1rP UE+N1nS4Nsa2RV6T+COuNj2RxpDvHTsgnub/aLspJ/iBUF5/UZQ9x+BegQ6S5VTHyrYY N8NA== X-Gm-Message-State: AOAM531F2DjMaoQTyTyu4x0KMK1HOjQJP0G7hTd41YEd44xJuPnkHXsi xBEo7Bf1RyNzUwifyWLGKtiRCGKyzteRrKAcXNgx2Q2PMg== X-Google-Smtp-Source: ABdhPJyUHM5YI7jTJepXxH1fouo2waqRQ/k513JzrzQJN/zW//RqjvDM6ar4FYBvGREBOnl/BB7BNVCnbOz0OZR/59s= X-Received: by 2002:ac8:5e14:0:b0:2f3:44f5:bf51 with SMTP id h20-20020ac85e14000000b002f344f5bf51mr2319752qtx.367.1650492683858; Wed, 20 Apr 2022 15:11:23 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: C Howland Date: Wed, 20 Apr 2022 18:11:13 -0400 Message-ID: Subject: Re: Fw: Issue: headers may use non-reserved identifiers To: newlib@sourceware.org X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, HTML_MESSAGE, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: newlib@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Newlib mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Apr 2022 22:11:26 -0000 > ------------------------------ > *From:* Newlib on behalf of Pavel M > *Sent:* Wednesday, April 20, 2022 4:35 PM > *To:* newlib@sourceware.org > *Subject:* Issue: headers may use non-reserved identifiers > > > Hi all, > > Issue: headers may use non-reserved identifiers. > > Example: > #define _reent 0 > #include > > $ gcc t567.c -std=3Dc11 > t567.c:1:16: error: expected =E2=80=98{=E2=80=99 before numeric constant > 1 | #define _reent 0 > | ^ > t567.c:1:16: error: expected =E2=80=98{=E2=80=99 before numeric constant > 1 | #define _reent 0 > | ^ > and so on... > > Per C11 _reent, _on_exit_args, etc. are non-reserved identifiers. > > Consider fixing. > > P.S. Good if it leads to compile time errors, not good if it doesn't (wro= ng > translation unit produced =3D> wrong code generated =3D> wrong runtime > behavior). > > -- > Pavel > ------------------------------ > No, the headers do not use non-reserved identifiers. Look at the standard again, as the second dash item in section 7.1.3 Reserved Identifiers reserves all identifiers that start with underscore. The example program violates the standard. In short, user programs may not use identifiers that start with underscore. (More precisely there are some very-limited cases in which they can, but preprocessor identifiers is not one of them.)