Hi, Here's the list of changes in v20:
- Drop changes to support Cc tags in commit messages (but keep the patch to add support for Link tags). - Drop the Cc tags from commit 2 (but keep Link tags). - Remove one _Static_assert() from tests. I think the test is more readable without it. - Add space in macro definition. - Fix changelog for the makefile changes. - Add patch 4, which adds the pedantic warning for <= C23. I think this is feature-complete. I have run `make bootstrap`. I haven't run `make check` yet this time; I'll do that in the following days. Have a lovely day! Alex Alejandro Colomar (4): contrib/: Add support for Link: tags c: Add _Countof operator c: Add <stdcountof.h> c: Add -Wpedantic diagnostic for _Countof contrib/gcc-changelog/git_commit.py | 3 + gcc/Makefile.in | 1 + gcc/c-family/c-common.cc | 26 +++++ gcc/c-family/c-common.def | 3 + gcc/c-family/c-common.h | 2 + gcc/c/c-decl.cc | 22 +++- gcc/c/c-parser.cc | 63 +++++++--- gcc/c/c-tree.h | 4 + gcc/c/c-typeck.cc | 115 +++++++++++++++++- gcc/doc/extend.texi | 30 +++++ gcc/ginclude/stdcountof.h | 31 +++++ gcc/testsuite/gcc.dg/countof-compile.c | 130 +++++++++++++++++++++ gcc/testsuite/gcc.dg/countof-vla.c | 51 ++++++++ gcc/testsuite/gcc.dg/countof.c | 154 +++++++++++++++++++++++++ 14 files changed, 611 insertions(+), 24 deletions(-) create mode 100644 gcc/ginclude/stdcountof.h create mode 100644 gcc/testsuite/gcc.dg/countof-compile.c create mode 100644 gcc/testsuite/gcc.dg/countof-vla.c create mode 100644 gcc/testsuite/gcc.dg/countof.c Range-diff against v19: 1: 796c82b0cba ! 1: 0a752a02dd0 contrib/: Add support for Cc: and Link: tags @@ Metadata Author: Alejandro Colomar <a...@kernel.org> ## Commit message ## - contrib/: Add support for Cc: and Link: tags + contrib/: Add support for Link: tags contrib/ChangeLog: * gcc-changelog/git_commit.py (GitCommit): - Add support for 'Cc: ' and 'Link: ' tags. + Add support for 'Link:' tags. Cc: Jason Merrill <ja...@redhat.com> Signed-off-by: Alejandro Colomar <a...@kernel.org> ## contrib/gcc-changelog/git_commit.py ## @@ contrib/gcc-changelog/git_commit.py: CO_AUTHORED_BY_PREFIX = 'co-authored-by: ' - REVIEW_PREFIXES = ('reviewed-by: ', 'reviewed-on: ', 'signed-off-by: ', 'acked-by: ', 'tested-by: ', 'reported-by: ', -- 'suggested-by: ') -+ 'suggested-by: ', 'cc: ') + 'suggested-by: ') +LINK_PREFIXES = ('link: ') DATE_FORMAT = '%Y-%m-%d' 2: ae4691c8b45 ! 2: c28c880f609 c: Add _Countof operator @@ Commit message Suggested-by: Xavier Del Campo Romero <xavi....@tutanota.com> Co-authored-by: Martin Uecker <uec...@tugraz.at> Acked-by: "James K. Lowden" <jklow...@schemamania.org> - Cc: Joseph Myers <josmy...@redhat.com> - Cc: Gabriel Ravier <gabrav...@gmail.com> - Cc: Jakub Jelinek <ja...@redhat.com> - Cc: Kees Cook <keesc...@chromium.org> - Cc: Qing Zhao <qing.z...@oracle.com> - Cc: Jens Gustedt <jens.gust...@inria.fr> - Cc: David Brown <david.br...@hesbynett.no> - Cc: Florian Weimer <fwei...@redhat.com> - Cc: Andreas Schwab <sch...@linux-m68k.org> - Cc: Timm Baeder <tbae...@redhat.com> - Cc: Daniel Plakosh <dplak...@cert.org> - Cc: "A. Jiang" <d...@live.cn> - Cc: Eugene Zelenko <eugene.zele...@gmail.com> - Cc: Aaron Ballman <aaron.ball...@intel.com> - Cc: Paul Koning <paulkon...@comcast.net> - Cc: Daniel Lundin <daniel.lundin.m...@gmail.com> - Cc: Nikolaos Strimpas <strni...@protonmail.com> - Cc: JeanHeyd Meneide <phdoftheho...@gmail.com> - Cc: Fernando Borretti <ferna...@borretti.me> - Cc: Jonathan Protzenko <jonathan.protze...@ens-lyon.org> - Cc: Chris Bazley <chris.baz...@arm.com> - Cc: Ville Voutilainen <ville.voutilai...@gmail.com> - Cc: Alex Celeste <alexg.n...@gmail.com> - Cc: Jakub Ćukasiewicz <jakublukasiew...@outlook.com> - Cc: Douglas McIlroy <douglas.mcil...@dartmouth.edu> - Cc: Jason Merrill <ja...@redhat.com> - Cc: "Gustavo A. R. Silva" <gustavo...@kernel.org> - Cc: Patrizia Kaye <patri...@ethernull.org> - Cc: Ori Bernstein <o...@eigenstate.org> - Cc: Robert Seacord <rcseac...@gmail.com> - Cc: Marek Polacek <mpola...@gcc.gnu.org> - Cc: Sam James <s...@gentoo.org> - Cc: Richard Biener <richard.guent...@gmail.com> Signed-off-by: Alejandro Colomar <a...@kernel.org> ## gcc/c-family/c-common.cc ## @@ gcc/testsuite/gcc.dg/countof-compile.c (new) +{ + int b[n][n]; + -+ _Static_assert (_Countof (a[f1()]) == 9); ++ _Countof (a[f1()]); + _Countof (b[f2()]); +} + 3: f4700c6d7dc ! 3: f6ff1f130de c: Add <stdcountof.h> @@ Commit message gcc/ChangeLog: - * Makefile.in + * Makefile.in (USER_H): Add <stdcountof.h>. * ginclude/stdcountof.h: Add countof macro. Signed-off-by: Alejandro Colomar <a...@kernel.org> @@ gcc/ginclude/stdcountof.h (new) +#ifndef _STDCOUNTOF_H +#define _STDCOUNTOF_H + -+#define countof _Countof ++#define countof _Countof + +#endif /* stdcountof.h */ -: ----------- > 4: 94bc203a406 c: Add -Wpedantic diagnostic for _Countof -- 2.49.0