This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug bootstrap/78817] New: stage2 bootstrap failure in vec.h:1613:5: error: argument 1 null where non-null expected after r243661


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

            Bug ID: 78817
           Summary: stage2 bootstrap failure in vec.h:1613:5: error:
                    argument 1 null where non-null expected after r243661
           Product: gcc
           Version: 7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: bootstrap
          Assignee: unassigned at gcc dot gnu.org
          Reporter: msebor at gcc dot gnu.org
  Target Milestone: ---

Commit r243661 causes a bootstrap failure on powerpc64l-linux with the
following error:

In file included from /src/gcc/trunk/gcc/hash-table.h:236:0,
                 from /src/gcc/trunk/gcc/coretypes.h:369,
                 from /src/gcc/trunk/gcc/tree-inline.c:23:
/src/gcc/trunk/gcc/vec.h: In function ‘basic_block_def*
copy_bb(copy_body_data*, basic_block, int, gcov_type)’:
/src/gcc/trunk/gcc/vec.h:1613:5: error: argument 1 null where non-null expected
[-Werror=nonnull]
     memset (&(address ()[oldlen]), 0, sz);
     ^~~~~~
In file included from
/build/gcc-trunk/prev-powerpc64le-unknown-linux-gnu/libstdc++-v3/include/cstring:42:0,
                 from /src/gcc/trunk/gcc/system.h:235,
                 from /src/gcc/trunk/gcc/tree-inline.c:22:
/usr/include/string.h:62:14: note: in a call to function ‘void* memset(void*,
int, size_t)’ declared here
 extern void *memset (void *__s, int __c, size_t __n) __THROW __nonnull ((1));
              ^~~~~~

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]