public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH v3 0/4]Allow flexible array members in unions and alone in structures [PR53548]
@ 2024-04-30 14:58 Qing Zhao
  2024-04-30 14:58 ` [PATCH v3 1/4] Allow " Qing Zhao
                   ` (3 more replies)
  0 siblings, 4 replies; 15+ messages in thread
From: Qing Zhao @ 2024-04-30 14:58 UTC (permalink / raw)
  To: jason, josmyers, richard.guenther, siddhesh
  Cc: uecker, keescook, gcc-patches, Qing Zhao

Hi,

This is the 3rd version for 
Allow flexible array members in unions and alone in structures [PR53548]

(for your reference, the 1st version is at:
https://gcc.gnu.org/pipermail/gcc-patches/2024-April/649737.html
The 2nd version is at:
https://gcc.gnu.org/pipermail/gcc-patches/2024-April/650019.html)

compared to the 2nd version, the major difference are:

A. Add two testing cases for _bos per Sid's comments;
B. One update to the C FE routine "add_flexible_array_elts_to_size"
   to handle the cases when the declaration is union.
C. One update the the C++ FE routine "layout_var_decl" to handle
   the cases when the declaratin is a union with a flexible array
   member initializer.

All the above new change is included in the new 4th patch.

Review needed:

   C++ FE changes (in Patch 2 and new Patch 4);
   Middle-end changes (in Patch 2);
   New C FE change (in new Patch 4);
   New testing cases for _bos (in new Patch 4);

Approval status:

   All other changes (C FE and documentation and related testing cases)
   have been approved with minor updates.

The patch set includes:
 1. Documentation change.
    Allow flexible array members in unions and alone in structures
    [PR53548]
 2. C and C++ FE changes to support flexible array members in unions and
   alone in structures.
    Adjust testcases for flexible array member in union and alone in
   structure extension.
 3. Add testing cases for flexible array members in unions and alone in
   structures.
 4. Update the C FE routine "add_flexible_array_elts_to_size" C++ FE
   routine "layout_var_decl"  to handle the cases when the DECL is
   union.
    Add testing cvases to test the _bos for FAM in union and alone in
   structures.

bootstrapped and regression tested on both x86 and aarch64, no issue.

Okay for GCC15?

thanks.

Qing

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

end of thread, other threads:[~2024-05-01 14:02 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-04-30 14:58 [PATCH v3 0/4]Allow flexible array members in unions and alone in structures [PR53548] Qing Zhao
2024-04-30 14:58 ` [PATCH v3 1/4] Allow " Qing Zhao
2024-04-30 21:27   ` Jason Merrill
2024-04-30 21:45     ` Qing Zhao
2024-04-30 21:49       ` Qing Zhao
2024-04-30 21:52         ` Jason Merrill
2024-04-30 21:53           ` Qing Zhao
2024-04-30 21:51       ` Jason Merrill
2024-04-30 23:55         ` Kees Cook
2024-05-01 14:02           ` Qing Zhao
2024-04-30 14:58 ` [PATCH v3 2/4] C and C++ FE changes Qing Zhao
2024-04-30 14:58 ` [PATCH v3 3/4] Add testing cases for flexible array members in unions and alone in structures Qing Zhao
2024-04-30 14:58 ` [PATCH v3 4/4] Update the C FE routine "add_flexible_array_elts_to_size" C++ FE routine "layout_var_decl" to handle the cases when the DECL is union Qing Zhao
2024-04-30 21:29   ` Jason Merrill
2024-04-30 21:36     ` Qing Zhao

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