https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82948

            Bug ID: 82948
           Summary: [8 Regression] prefix.c:202:15: error: 'char*
                    strncpy(char*, const char*, size_t)' destination
                    unchanged after copying no bytes
                    [-Werror=stringop-truncation]
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Keywords: diagnostic
          Severity: normal
          Priority: P3
         Component: bootstrap
          Assignee: unassigned at gcc dot gnu.org
          Reporter: glisse at gcc dot gnu.org
  Target Milestone: ---

Hello,

I cannot bootstrap currently (r254649) on gcc112
(powerpc64le-unknown-linux-gnu) with --with-system-zlib --disable-nls
--enable-languages=all,obj-c++,go --enable-host-shared

/home/glisse/pristine/gcc/prefix.c: In function 'char* translate_name(char*)':
/home/glisse/pristine/gcc/prefix.c:202:15: error: 'char* strncpy(char*, const
char*, size_t)' destination unchanged after copying no bytes
[-Werror=stringop-truncation]
       strncpy (key, &name[1], keylen);
       ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
/home/glisse/pristine/gcc/prefix.c:202:15: error: 'char* strncpy(char*, const
char*, size_t)' destination unchanged after copying no bytes
[-Werror=stringop-truncation]
/home/glisse/pristine/gcc/prefix.c:202:15: error: 'char* strncpy(char*, const
char*, size_t)' destination unchanged after copying no bytes
[-Werror=stringop-truncation]
/home/glisse/pristine/gcc/prefix.c:202:15: error: 'char* strncpy(char*, const
char*, size_t)' destination unchanged after copying no bytes
[-Werror=stringop-truncation]
cc1plus: all warnings being treated as errors
make[3]: *** [prefix.o] Error 1
make[3]: *** Waiting for unfinished jobs....
rm gfortran.pod fsf-funding.pod gcov.pod gpl.pod cpp.pod gfdl.pod gccgo.pod
gcc.pod gcov-dump.pod gcov-tool.pod
make[3]: Leaving directory `/home/glisse/test/pristine/build/gcc'
make[2]: *** [all-stage2-gcc] Error 2

Reply via email to