From: "Cristian Rodríguez" <cristian@rodriguez.im>
To: libc-alpha@sourceware.org
Cc: "Cristian Rodríguez" <cristian@rodriguez.im>
Subject: [PATCH 0/6] Support use of -fstrict-flex-arrays in user code
Date: Mon, 10 Jul 2023 15:04:36 +0000 [thread overview]
Message-ID: <20230710150454.5490-1-cristian@rodriguez.im> (raw)
Currently GCC 13 -fstrict-flex-arrays cannot be used safely with user
code because the library makes use of pre-c99 flexible arrays.
This series introduces a macro to annotate such uses and grandfathers-in
this legacy use.
This series only cover the user-visible *library* types. the linux kernel types
are subject to a different patch set and discussion since the kernel has
moved on to c11 leaving pre-c99 compatibilty behind.
Cristian Rodríguez (6):
Introduce __decl_is_flex_array macro
dlfcn : annotate dls_serpath with __decl_is_flex_array
inet: annotate tu_data and tu_stuff with __decl_is_flex_array
inet: annotate ip6r0_addr with __decl_is_flex_array
io: annotate fts_name with __decl_is_flex_array
misc: annotate q_data with __decl_is_flex_array
dlfcn/dlfcn.h | 2 +-
inet/arpa/tftp.h | 6 ++++--
inet/netinet/ip6.h | 2 +-
io/fts.h | 4 ++--
misc/search.h | 2 +-
misc/sys/cdefs.h | 6 ++++++
6 files changed, 15 insertions(+), 7 deletions(-)
--
2.41.0
next reply other threads:[~2023-07-10 15:05 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-07-10 15:04 Cristian Rodríguez [this message]
2023-07-10 15:04 ` [PATCH 1/6] Introduce __decl_is_flex_array macro Cristian Rodríguez
2023-07-10 15:04 ` [PATCH 2/6] dlfcn : annotate dls_serpath with __decl_is_flex_array Cristian Rodríguez
2023-07-10 15:04 ` [PATCH 3/6] inet: annotate tu_data and tu_stuff " Cristian Rodríguez
2023-07-10 15:04 ` [PATCH 4/6] inet: annotate ip6r0_addr " Cristian Rodríguez
2023-07-10 15:04 ` [PATCH 5/6] io: annotate fts_name " Cristian Rodríguez
2023-07-10 15:04 ` [PATCH 6/6] misc: annotate q_data " Cristian Rodríguez
2023-07-19 12:40 ` [PATCH 0/6] Support use of -fstrict-flex-arrays in user code Cristian Rodríguez
2023-07-19 14:27 ` Adhemerval Zanella Netto
2023-07-19 14:57 ` Cristian Rodríguez
2023-07-19 17:48 ` Adhemerval Zanella Netto
2023-08-11 15:34 ` Cristian Rodríguez
2023-08-11 22:10 ` Paul Eggert
2023-08-12 11:07 ` Alejandro Colomar
2023-08-12 13:29 ` Alejandro Colomar
2023-08-12 14:53 ` Cristian Rodríguez
2023-08-12 18:20 ` Paul Eggert
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=20230710150454.5490-1-cristian@rodriguez.im \
--to=cristian@rodriguez.im \
--cc=libc-alpha@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).