From: Florian Weimer <fweimer@redhat.com>
To: libc-alpha@sourceware.org
Cc: Siddhesh Poyarekar <siddhesh@redhat.com>
Subject: C90 header compatibility
Date: Mon, 30 Jan 2023 08:58:19 +0100 [thread overview]
Message-ID: <871qnc1mjo.fsf@oldenburg.str.redhat.com> (raw)
We regressed compatibility with C90 compilers because <sys/cdefs.h>
unconditionally uses variadic macros, a C99 feature, in the definition
of __glibc_fortify and __glibc_fortify_n.
This also impacts certain C++ compilers that do not have a
C99-compatible preprocessor.
Should we fix this? I think so.
Previously, we worked around this by enclosing variable-length lists in
(…), but it doesn't look like it might work here. We probably need to
move the macros into a separate file, and include that file only if
fortification is active.
Thanks,
Florian
next reply other threads:[~2023-01-30 7:58 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-01-30 7:58 Florian Weimer [this message]
2023-01-30 12:26 ` Siddhesh Poyarekar
2023-01-30 12:43 ` Florian Weimer
2023-01-30 13:32 ` [PATCH] cdefs: Limit definition of fortification macros Siddhesh Poyarekar
2023-02-01 17:48 ` Florian Weimer
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=871qnc1mjo.fsf@oldenburg.str.redhat.com \
--to=fweimer@redhat.com \
--cc=libc-alpha@sourceware.org \
--cc=siddhesh@redhat.com \
/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).