From: Pádraig Brady Date: Mon, 30 Jun 2025 13:25:56 +0000 (+0100) Subject: od: reinstate half float validation check X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=87dcd447b165fee248ead5d15a8d2ea3eeaed15e;p=thirdparty%2Fcoreutils.git od: reinstate half float validation check Reinstate check removed in commit 56aa549a0 so that we disallow -f2 when configured with utils_cv_ieee_16_bit_supported=no. Otherwise the output routines will consume floats, i.e. 4 bytes at a time. Without this extra check the tests/od/od-endian.sh will fail with this configuration. * src/od.c (decode_one_format): Reinstate the explicit check for this configuration edge case. --- diff --git a/src/od.c b/src/od.c index 700470b853..24e981cb06 100644 --- a/src/od.c +++ b/src/od.c @@ -871,7 +871,9 @@ decode_one_format (char const *s_orig, char const *s, char const **next, else { if (ARRAY_CARDINALITY (fp_type_size) <= size - || fp_type_size[size] == NO_SIZE) + || fp_type_size[size] == NO_SIZE + || (! FLOAT16_SUPPORTED && BF16_SUPPORTED + && size == sizeof (bfloat16))) { error (0, 0, _("invalid type string %s;\n"