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

--- Comment #4 from Christophe Lyon <clyon at gcc dot gnu.org> ---
gcc.log on the RH7 host contains lines which are absent from gcc.log on the RH6
host:

In function 'void wrap_memcpy_dst_diff_max(char*, const char*, ptrdiff_t,
size_t)',
    inlined from 'void call_memcpy_dst_diff_max(const char*, size_t)' at
/gcc/testsuite/c-c++-common/Warray-bounds-2.c:97:28:
/gcc/testsuite/c-c++-common/Warray-bounds-2.c:90:10: warning: 'void*
memcpy(void*, const void*, size_t)' offset -9223372036854775796 is out of the
bounds [0, 45] of object 'ar2' with type 'Array' [-Warray-bounds]
/gcc/testsuite/c-c++-common/Warray-bounds-2.c: In function 'void
call_memcpy_dst_diff_max(const char*, size_t)':
/gcc/testsuite/c-c++-common/Warray-bounds-2.c:95:16: note: 'ar2' declared here

In function 'void wrap_strncpy_dst_diff_max(char*, const char*, ptrdiff_t,
size_t)',
    inlined from 'void call_strncpy_dst_diff_max(const char*, size_t)' at
/gcc/testsuite/c-c++-common/Warray-bounds-2.c:212:29:
/gcc/testsuite/c-c++-common/Warray-bounds-2.c:205:11: warning: 'char*
strncpy(char*, const char*, size_t)' offset -9223372036854775781 is out of the
bounds [0, 45] of object 'ar9' with type 'Array' [-Warray-bounds]
/gcc/testsuite/c-c++-common/Warray-bounds-2.c: In function 'void
call_strncpy_dst_diff_max(const char*, size_t)':
/gcc/testsuite/c-c++-common/Warray-bounds-2.c:210:16: note: 'ar9' declared here

Could something filter-out such messages in one case and not in the other one
(I mean is it possible that the compiler emits them in both cases, but
something prevents them from appearing in gcc.log in one case) ?

Reply via email to