File otp_src_23.3.4.1-erts-config-float16.patch of Package erlang

diff -Ndurp otp_src_23.3.4.1/erts/config.h.in otp_src_23.3.4.1-erts-config-float16/erts/config.h.in
--- otp_src_23.3.4.1/erts/config.h.in	2021-05-20 21:45:04.000000000 +0300
+++ otp_src_23.3.4.1-erts-config-float16/erts/config.h.in	2021-05-21 02:58:59.106854072 +0300
@@ -1247,6 +1247,9 @@
 /* The size of `void *', as computed by sizeof. */
 #undef SIZEOF_VOID_P
 
+/* The size of `_Float16', as computed by sizeof. */
+#undef SIZEOF__FLOAT16
+
 /* The size of `__int128_t', as computed by sizeof. */
 #undef SIZEOF___INT128_T
 
diff -Ndurp otp_src_23.3.4.1/erts/configure otp_src_23.3.4.1-erts-config-float16/erts/configure
--- otp_src_23.3.4.1/erts/configure	2021-05-20 21:45:04.000000000 +0300
+++ otp_src_23.3.4.1-erts-config-float16/erts/configure	2021-05-21 03:00:08.325296696 +0300
@@ -16657,6 +16657,39 @@ cat >>confdefs.h <<_ACEOF
 _ACEOF
 
 
+# The cast to long int works around a bug in the HP C Compiler
+# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
+# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
+# This bug is HP SR number 8606223364.
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of _Float16" >&5
+$as_echo_n "checking size of _Float16... " >&6; }
+if ${ac_cv_sizeof__Float16+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (_Float16))" "ac_cv_sizeof__Float16"        "$ac_includes_default"; then :
+
+else
+  if test "$ac_cv_type__Float16" = yes; then
+     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
+as_fn_error 77 "cannot compute sizeof (_Float16)
+See \`config.log' for more details" "$LINENO" 5; }
+   else
+     ac_cv_sizeof__Float16=0
+   fi
+fi
+
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof__Float16" >&5
+$as_echo "$ac_cv_sizeof__Float16" >&6; }
+
+
+
+cat >>confdefs.h <<_ACEOF
+#define SIZEOF__FLOAT16 $ac_cv_sizeof__Float16
+_ACEOF
+
+
 
 BITS64=
 
openSUSE Build Service is sponsored by