https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84095
--- Comment #8 from Arnd Bergmann <arnd at linaro dot org> --- Created attachment 43295 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=43295&action=edit linux/drivers/isdn/isdnloop/isdnloop.c, preprocessed, compressed This is the preprocessed file that showed the funky -Wrestrict warning message: $ x86_64-linux-gcc-8.0.1 -Wall -O2 isdnloop.i -c -m32 -Wno-pointer-sign -Wno-unused In file included from /git/arm-soc/arch/x86/include/asm/page_32.h:35, from /git/arm-soc/arch/x86/include/asm/page.h:14, from /git/arm-soc/arch/x86/include/asm/thread_info.h:12, from /git/arm-soc/include/linux/thread_info.h:38, from /git/arm-soc/arch/x86/include/asm/preempt.h:7, from /git/arm-soc/include/linux/preempt.h:81, from /git/arm-soc/include/linux/spinlock.h:51, from /git/arm-soc/include/linux/seqlock.h:36, from /git/arm-soc/include/linux/time.h:6, from /git/arm-soc/include/linux/stat.h:22, from /git/arm-soc/include/linux/module.h:10, from /git/arm-soc/drivers/isdn/isdnloop/isdnloop.c:12: In function 'strcpy', inlined from 'isdnloop_parse_cmd' at /git/arm-soc/drivers/isdn/isdnloop/isdnloop.c:900:3, inlined from 'isdnloop_writecmd' at /git/arm-soc/drivers/isdn/isdnloop/isdnloop.c:989:5: /git/arm-soc/include/linux/string.h:437:10: warning: '__builtin_strcpy' accessing 0 or more bytes at offsets [36, 25] and 446 may overlap up to 0 bytes at offset [9223372036854775807, -9223372036854775808] [-Wrestrict] return __builtin_strcpy(p, q); ^~~~~~~~~~~~~~~~~~~~~~ I did not try to reduce the test case.