public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/29132] New: If <stdc-predef.h> is not preincluded, then #define __STDC_xxx violate C11 6.10.8
@ 2022-05-09 10:58 pavel.morozkin at gmail dot com
  2022-05-09 11:31 ` [Bug libc/29132] " fweimer at redhat dot com
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: pavel.morozkin at gmail dot com @ 2022-05-09 10:58 UTC (permalink / raw)
  To: glibc-bugs

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.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2022-05-10 19:28 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-09 10:58 [Bug libc/29132] New: If <stdc-predef.h> is not preincluded, then #define __STDC_xxx violate C11 6.10.8 pavel.morozkin at gmail dot com
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

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).