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

            Bug ID: 83781
           Summary: [8 Regression] Bootstrap failed on x86
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: hjl.tools at gmail dot com
                CC: msebor at gcc dot gnu.org
  Target Milestone: ---

I got

trunk/gcc/hsa-dump.c
../../src-trunk/gcc/hsa-dump.c: In function ‘void dump_hsa_symbol(FILE*,
hsa_symbol*)’:
../../src-trunk/gcc/hsa-dump.c:784:21: error: ‘%s’ directive writing up to 71
bytes into a region of size 62 [-Werror=format-overflow=]
       sprintf (buf, "__%s_%i", hsa_seg_name (symbol->m_segment),
                     ^~~~~~~~~
../../src-trunk/gcc/hsa-dump.c:784:15: note: ‘sprintf’ output between 5 and 86
bytes into a destination of size 64
       sprintf (buf, "__%s_%i", hsa_seg_name (symbol->m_segment),
       ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
         symbol->m_name_number);

and

../../src-trunk/gcc/config/i386/i386.c: In function 'const char*
output_set_got(rtx, rtx)':
../../src-trunk/gcc/config/i386/i386.c:10653:20: error: '%s' directive writing
up to 323 bytes into a region of size 13 [-Werror=format-overflow=]
     sprintf (name, "__x86.get_pc_thunk.%s", reg_names[regno]);
                    ^~~~~~~~~~~~~~~~~~~~~~~
../../src-trunk/gcc/config/i386/i386.c:10653:13: note: 'sprintf' output between
20 and 343 bytes into a destination of size 32
     sprintf (name, "__x86.get_pc_thunk.%s", reg_names[regno]);
     ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

r256454 is OK and r25646 failed. It may be caused by r256457.

Reply via email to