public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "pavel.morozkin at gmail dot com" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug libc/29132] New: If <stdc-predef.h> is not preincluded, then #define __STDC_xxx violate C11 6.10.8
Date: Mon, 09 May 2022 10:58:13 +0000	[thread overview]
Message-ID: <bug-29132-131@http.sourceware.org/bugzilla/> (raw)

https://sourceware.org/bugzilla/show_bug.cgi?id=29132

            Bug ID: 29132
           Summary: If <stdc-predef.h> is not preincluded, then #define
                    __STDC_xxx violate C11 6.10.8
           Product: glibc
           Version: unspecified
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: libc
          Assignee: unassigned at sourceware dot org
          Reporter: pavel.morozkin at gmail dot com
                CC: drepper.fsp at gmail dot com
  Target Milestone: ---

If <stdc-predef.h> is not preincluded, then #define __STDC_xxx violate C11
6.10.8.

In GCC the <stdc-predef.h> is preincluded => OK.
In Clang the <stdc-predef.h> is not preincluded => not OK (see
https://github.com/llvm/llvm-project/issues/53132).

Relevant quotes:
C11, 6.10.8 Predefined macro names:
> None of these macro names, nor the identifier defined, shall be the subject of a
> #define or a #undef preprocessing directive.
> The values of the predefined macros listed in the following subclauses176) (except for
> _ _FILE_ _ and _ _LINE_ _) remain constant throughout the translation unit.

Consider fixing.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

             reply	other threads:[~2022-05-09 10:58 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-05-09 10:58 pavel.morozkin at gmail dot com [this message]
2022-05-09 11:31 ` [Bug libc/29132] " fweimer at redhat dot com
2022-05-09 11:49 ` schwab@linux-m68k.org
2022-05-09 16:43 ` pavel.morozkin at gmail dot com
2022-05-09 18:54 ` joseph at codesourcery dot com
2022-05-10 19:28 ` pavel.morozkin at gmail dot com

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-29132-131@http.sourceware.org/bugzilla/ \
    --to=sourceware-bugzilla@sourceware.org \
    --cc=glibc-bugs@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).