public inbox for overseers@sourceware.org
 help / color / mirror / Atom feed
* Creating an account to report a bug
@ 2022-05-08 13:35 Pavel M
  2022-05-08 22:11 ` Mark Wielaard
  0 siblings, 1 reply; 3+ messages in thread
From: Pavel M @ 2022-05-08 13:35 UTC (permalink / raw)
  To: overseers

Hello administrator or maintainer,

I need to create an account to report a bug: stdc-predef.h violates C11
6.10.8 Predefined macro names.

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.

However, in stdc-predef.h we see:
# define __STDC_IEC_559__ 1

This is violation of C11 6.10.8.

Extra: to remind:
> The* values of the predefined macros* listed in the following
subclauses176) (except for
> _ _FILE_ _ and _ _LINE_ _) *remain constant throughout the translation
unit*.

Thanks,
Pavel

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

* Re: Creating an account to report a bug
  2022-05-08 13:35 Creating an account to report a bug Pavel M
@ 2022-05-08 22:11 ` Mark Wielaard
  2022-05-09 10:45   ` Pavel M
  0 siblings, 1 reply; 3+ messages in thread
From: Mark Wielaard @ 2022-05-08 22:11 UTC (permalink / raw)
  To: Overseers mailing list; +Cc: Pavel M

Hi Pavel,

On Sun, May 08, 2022 at 04:35:52PM +0300, Pavel M via Overseers wrote:
> I need to create an account to report a bug

A bugzilla account has been created for you. You should have gotten an
email about it. You can activate your account through the Forgot/Reset
Password link.

Cheers,

Mark


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

* Re: Creating an account to report a bug
  2022-05-08 22:11 ` Mark Wielaard
@ 2022-05-09 10:45   ` Pavel M
  0 siblings, 0 replies; 3+ messages in thread
From: Pavel M @ 2022-05-09 10:45 UTC (permalink / raw)
  To: Mark Wielaard; +Cc: Overseers mailing list

Hi Mark,
Thanks!
It turns out that GCC is OK, because it preincludes <stdc-predef.h>.
However, it seems that Clang doesn't. This causes issue:
https://github.com/llvm/llvm-project/issues/53132.
Here is the relevant code from include/features.h:
/* Get definitions of __STDC_* predefined macros, if the compiler has
   not preincluded this header automatically.  */
#include <stdc-predef.h>
If the compiler has not preincluded this header automatically, then there
is a violation of C11 6.10.8.
I've already notified Clang developers to consider fixing 53132 by
preincluding <stdc-predef.h>.
--
Pavel

On Mon, 9 May 2022 at 01:11, Mark Wielaard <mark@klomp.org> wrote:

> Hi Pavel,
>
> On Sun, May 08, 2022 at 04:35:52PM +0300, Pavel M via Overseers wrote:
> > I need to create an account to report a bug
>
> A bugzilla account has been created for you. You should have gotten an
> email about it. You can activate your account through the Forgot/Reset
> Password link.
>
> Cheers,
>
> Mark
>
>

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

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

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-08 13:35 Creating an account to report a bug Pavel M
2022-05-08 22:11 ` Mark Wielaard
2022-05-09 10:45   ` Pavel M

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