[RFC] Support for nonzero attribute

2022-06-03 Thread Miika via Gcc
Hello, I would like to add support for new attribute: nonzero. Nonzero attribute works the same way as nonnull but instead of checking for NULL, it checks for integer or enum with value 0. Nonzero attribute would issue warnings with new compiler flag -Wnonzero and -Wnonzero-compare. Nonzero coul

Re: [RFC] Support for nonzero attribute

2022-06-03 Thread Jakub Jelinek via Gcc
On Fri, Jun 03, 2022 at 04:34:48PM +, Miika via Gcc wrote: > Hello, > > I would like to add support for new attribute: nonzero. > Nonzero attribute works the same way as nonnull but instead of checking for > NULL, it checks for integer or enum with value 0. NULL/nullptr is very special pointe

gcc-11-20220603 is now available

2022-06-03 Thread GCC Administrator via Gcc
Snapshot gcc-11-20220603 is now available on https://gcc.gnu.org/pub/gcc/snapshots/11-20220603/ and on various mirrors, see http://gcc.gnu.org/mirrors.html for details. This snapshot has been generated from the GCC 11 git branch with the following options: git://gcc.gnu.org/git/gcc.git branch

.eh_frame augmentation character for MTE stack tagging

2022-06-03 Thread Florian Mayer via Gcc
Hey! We are in the process of implementing MTE (Memory Tagging Extension) stack tagging in LLVM. To support stack tagging in combination with exceptions, we need to make sure that the unwinder will untag stack frames, to avoid leaving behind stale tags. As such, we need some way to communicate to