aboutsummaryrefslogtreecommitdiff
path: root/gcc/libgcc2.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/libgcc2.c')
-rw-r--r--gcc/libgcc2.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/gcc/libgcc2.c b/gcc/libgcc2.c
index 5a82f82f7cd..1a8eedaae06 100644
--- a/gcc/libgcc2.c
+++ b/gcc/libgcc2.c
@@ -523,8 +523,11 @@ __ffsSI2 (UWtype u)
{
UWtype count;
- if (u == 0)
- return 0;
+#ifdef COUNT_TRAILING_ZEROS_0
+ if (COUNT_TRAILING_ZEROS_0 != -1)
+#endif
+ if (u == 0)
+ return 0;
count_trailing_zeros (count, u);
return count + 1;