On Fri, Jan 14, 2022 at 10:32 AM Jakub Jelinek <jakub(a)redhat.com> wrote:
Hi!
gcc 12 snapshot has landed as the system compiler into rawhide today.
GCC 12 is going to enter its stage4 development phase (only regression
and documentation bugfixes allowed) on Monday 17th, so there should be
just those bugfixes and not new features etc. anymore.
https://gcc.gnu.org/gcc-12/changes.html lists important changes,
most important is probably that vectorization is enabled at -O2 now
which is the option with most of the distribution is built with.
Hi,
Don't think I've seen this reported, but I get the following warnings
for code that uses memset, memcpy, etc. while compiling an external
kernel module against the current rawhide kernel:
./include/linux/fortify-string.h: In function ‘memset’:
./include/linux/fortify-string.h:201:24: warning: infinite recursion
detected [-Winfinite-recursion]
201 | __FORTIFY_INLINE void *memset(void *p, int c, __kernel_size_t size)
| ^~~~~~
./include/linux/fortify-string.h:43:33: note: recursive call
43 | #define __underlying_memset __builtin_memset
| ^
./include/linux/fortify-string.h:209:16: note: in expansion of macro
‘__underlying_memset’
209 | return __underlying_memset(p, c, size);
| ^~~~~~~~~~~~~~~~~~~
The resulting module still works fine btw, afaict.
Marc