[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug binutils/23146] Many targets won't build with GCC 8
From: |
amodra at gmail dot com |
Subject: |
[Bug binutils/23146] Many targets won't build with GCC 8 |
Date: |
Mon, 07 May 2018 03:06:19 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=23146
Alan Modra <amodra at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |amodra at gmail dot com
--- Comment #1 from Alan Modra <amodra at gmail dot com> ---
This particular error is https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85623.
We can work around it by replacing the strncmp call with memcmp, but a number
of annoying gcc8 warnings remain (if you don't have system headers that hide
the warning):
bfd/coffcode.h:3461:7: warning: ‘strncpy’ specified bound 8 equals destination
size [-Wstringop-truncation]
bfd/elf32-arm.c:2177:2: warning: ‘strncpy’ specified bound 80 equals
destination size [-Wstringop-truncation]
bfd/elf32-ppc.c:2414:2: warning: ‘strncpy’ specified bound 80 equals
destination size [-Wstringop-truncation]
bfd/elf32-s390.c:3954:2: warning: ‘strncpy’ specified bound 80 equals
destination size [-Wstringop-truncation]
bfd/elf64-ppc.c:3044:2: warning: ‘strncpy’ specified bound 80 equals
destination size [-Wstringop-truncation]
bfd/elf64-s390.c:3763:2: warning: ‘strncpy’ specified bound 80 equals
destination size [-Wstringop-truncation]
bfd/elfxx-aarch64.c:662:2: warning: ‘strncpy’ specified bound 80 equals
destination size [-Wstringop-truncation]
libiberty/dyn-string.c:280:3: warning: ‘strncpy’ output truncated before
terminating nul copying as many bytes from a string as its length
[-Wstringop-truncation]
--
You are receiving this mail because:
You are on the CC list for the bug.