https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83106
Bug ID: 83106 Summary: [8 regression] libgomp/target.c:2671:2: error: ‘strncat’ specified bound 5 equals source length [-Werror=stringop-overflow=] Product: gcc Version: 8.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: bootstrap Assignee: unassigned at gcc dot gnu.org Reporter: dimhen at gmail dot com Target Milestone: --- r254985 PASS r255052 FAIL libtool: compile: /home/dimhen/build/gcc_current/./gcc/xgcc -B/home/dimhen/build/gcc_current/./gcc/ -B/usr/local/gcc_current/x86_64-pc-linux-gnu/bin/ -B/usr/local/gcc_current/x86_64-pc-linux-gnu/lib/ -isystem /usr/local/gcc_current/x86_64-pc-linux-gnu/include -isystem /usr/local/gcc_current/x86_64-pc-linux-gnu/sys-include -DHAVE_CONFIG_H -I. -I/home/dimhen/src/gcc_current/libgomp -I/home/dimhen/src/gcc_current/libgomp/config/linux/x86 -I/home/dimhen/src/gcc_current/libgomp/config/linux -I/home/dimhen/src/gcc_current/libgomp/config/posix -I/home/dimhen/src/gcc_current/libgomp -I/home/dimhen/src/gcc_current/libgomp/../include -Wall -Werror -pthread -ftls-model=initial-exec -fcf-protection -mcet -g -O2 -MT target.lo -MD -MP -MF .deps/target.Tpo -c /home/dimhen/src/gcc_current/libgomp/target.c -fPIC -DPIC -o .libs/target.o /home/dimhen/src/gcc_current/libgomp/target.c: In function ‘gomp_target_init’: /home/dimhen/src/gcc_current/libgomp/target.c:2671:2: error: ‘strncat’ specified bound 5 equals source length [-Werror=stringop-overflow=] strncat (plugin_name, cur, next ? next - cur : strlen (cur)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc1: all warnings being treated as errors make[5]: *** [Makefile:659: target.lo] Error 1 $ ~/src/gcc_current/configure --prefix=/usr/local/gcc_current --enable-checking=yes,df,fold,rtl,extra --enable-languages=c,c++,lto --disable-multilib --enable-shared --enable-threads=posix --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-linker-hash-style=gnu --enable-plugin --enable-initfini-array --with-isl --enable-libmpx --enable-offload-targets=nvptx-none --without-cuda-driver --enable-gnu-indirect-function --with-tune=native $ make