public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
* [PATCH 0/6] Support use of -fstrict-flex-arrays in user code
@ 2023-07-10 15:04 Cristian Rodríguez
  2023-07-10 15:04 ` [PATCH 1/6] Introduce __decl_is_flex_array macro Cristian Rodríguez
                   ` (6 more replies)
  0 siblings, 7 replies; 17+ messages in thread
From: Cristian Rodríguez @ 2023-07-10 15:04 UTC (permalink / raw)
  To: libc-alpha; +Cc: Cristian Rodríguez

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


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

end of thread, other threads:[~2023-08-12 18:20 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-07-10 15:04 [PATCH 0/6] Support use of -fstrict-flex-arrays in user code Cristian Rodríguez
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

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