[PATCH v1 22/35] soft-fp/: Remove _FP_UNREACHABLE macro
Alejandro Colomar
alx@kernel.org
Sun Nov 9 21:53:42 GMT 2025
It's unconditionally defined as __builtin_unreachable().
Signed-off-by: Alejandro Colomar <alx@kernel.org>
---
soft-fp/op-common.h | 8 ++++----
soft-fp/soft-fp.h | 4 ----
2 files changed, 4 insertions(+), 8 deletions(-)
diff --git a/soft-fp/op-common.h b/soft-fp/op-common.h
index 6400926b61..f8e6ded958 100644
--- a/soft-fp/op-common.h
+++ b/soft-fp/op-common.h
@@ -925,7 +925,7 @@
break; \
\
default: \
- _FP_UNREACHABLE; \
+ __builtin_unreachable (); \
} \
} \
while (0)
@@ -1092,7 +1092,7 @@
break; \
\
default: \
- _FP_UNREACHABLE; \
+ __builtin_unreachable (); \
} \
\
/* T = X * Y is zero, infinity or NaN. */ \
@@ -1148,7 +1148,7 @@
break; \
\
default: \
- _FP_UNREACHABLE; \
+ __builtin_unreachable (); \
} \
done_fma: ; \
} \
@@ -1216,7 +1216,7 @@
break; \
\
default: \
- _FP_UNREACHABLE; \
+ __builtin_unreachable (); \
} \
} \
while (0)
diff --git a/soft-fp/soft-fp.h b/soft-fp/soft-fp.h
index a949962a63..086fb34a28 100644
--- a/soft-fp/soft-fp.h
+++ b/soft-fp/soft-fp.h
@@ -47,10 +47,6 @@
# endif
#endif
-/* For unreachable default cases in switch statements over bitwise OR
- of FP_CLS_* values. */
-# define _FP_UNREACHABLE __builtin_unreachable ()
-
#if ((__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6)) \
|| (defined __STDC_VERSION__ && __STDC_VERSION__ >= 201112L))
# define _FP_STATIC_ASSERT(expr, msg) \
--
2.51.0
More information about the Libc-alpha
mailing list