]> git.ipfire.org Git - thirdparty/gcc.git/commit
libgfortran: Use __builtin_unreachable() not -Wno-stringop-overflow to silence warning
authorTobias Burnus <tobias@codesourcery.com>
Thu, 28 Sep 2023 11:06:13 +0000 (13:06 +0200)
committerTobias Burnus <tobias@codesourcery.com>
Thu, 28 Sep 2023 11:06:13 +0000 (13:06 +0200)
commit4f41d497c9eeec6f97a5c240e03c7e5e1a1ec05e
tree20f7b8de2765e53020d151a697b24e69226bd911
parent73cd319b72ca45a537688cc8cc5751d86a00a0e9
libgfortran: Use __builtin_unreachable() not -Wno-stringop-overflow to silence warning

The only caller of write_z is formatted_transfer_scalar_write that passes
kind to 'len'; in turn, write_z is the only caller of xtoa_big, passing on
its 'len'.  The kind is passed as is, except for GFC_REAL_17 for which
len = 16 is used.

libgfortran/
* io/write.c (xtoa_big): Change a 'GCC diagnostic ignored
"-Wstringop-overflow"' to an assumption (via __builtin_unreachable).t
libgfortran/io/write.c