aboutsummaryrefslogtreecommitdiff
path: root/gcc/libgcc2.c
diff options
context:
space:
mode:
authorRichard Sandiford <rsandifo@redhat.com>2005-03-21 07:22:22 +0000
committerRichard Sandiford <rsandifo@gcc.gnu.org>2005-03-21 07:22:22 +0000
commitcfa7bd9ca274bd8411558dee28375a83c965d0a6 (patch)
treea192465141831679fb95155b61b480017146fa1d /gcc/libgcc2.c
parent90ec750dbf67872ce3076fceaf3b8df570c75c45 (diff)
downloadgcc-cfa7bd9ca274bd8411558dee28375a83c965d0a6.zip
gcc-cfa7bd9ca274bd8411558dee28375a83c965d0a6.tar.gz
gcc-cfa7bd9ca274bd8411558dee28375a83c965d0a6.tar.bz2
libgcc2.h (LIBGCC2_HAS_SF_MODE): New macro.
* libgcc2.h (LIBGCC2_HAS_SF_MODE): New macro. (LIBGCC2_HAS_DF_MODE, LIBGCC2_HAS_TF_MODE, LIBGCC2_HAS_XF_MODE): Make the defaults false if BITS_PER_UNIT != 8. (SFtype, SCtype, __fixsfdi, __floatdisf, __fixunssfSI, __fixunssfDI) (__powisf2, __divsc3, __mulsc3): Guard with LIBGCC2_HAS_SF_MODE rather than BITS_PER_UNIT != 8. (L_fixdfdi, L_fixsfdi, L_fixtfdi, L_fixunsdfdi, L_fixunsdfsi) (L_fixunssfdi, L_fixunssfsi, L_fixunstfdi, L_fixunsxfdi, L_fixunsxfsi) (L_fixxfdi, L_floatdidf, L_floatdisf, L_floatditf, L_floatdixf): Remove #undefs. * libgcc2.c (__fixunssfDI, __fixsfdi, __floatdisf, __fixunssfSI) (__powisf2, __divsc3, __mulsc3): Guard with LIBGCC2_HAS_SF_MODE. From-SVN: r96778
Diffstat (limited to 'gcc/libgcc2.c')
-rw-r--r--gcc/libgcc2.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/gcc/libgcc2.c b/gcc/libgcc2.c
index 68623c3..c8f6e51 100644
--- a/gcc/libgcc2.c
+++ b/gcc/libgcc2.c
@@ -1256,7 +1256,7 @@ __fixdfdi (DFtype a)
}
#endif
-#ifdef L_fixunssfdi
+#if defined(L_fixunssfdi) && LIBGCC2_HAS_SF_MODE
DWtype
__fixunssfDI (SFtype a)
{
@@ -1320,7 +1320,7 @@ __fixunssfDI (SFtype a)
}
#endif
-#ifdef L_fixsfdi
+#if defined(L_fixsfdi) && LIBGCC2_HAS_SF_MODE
DWtype
__fixsfdi (SFtype a)
{
@@ -1363,7 +1363,7 @@ __floatdidf (DWtype u)
}
#endif
-#ifdef L_floatdisf
+#if defined(L_floatdisf) && LIBGCC2_HAS_SF_MODE
#define DI_SIZE (W_TYPE_SIZE * 2)
#define SF_SIZE FLT_MANT_DIG
@@ -1495,7 +1495,7 @@ __fixunsdfSI (DFtype a)
}
#endif
-#ifdef L_fixunssfsi
+#if defined(L_fixunssfsi) && LIBGCC2_HAS_SF_MODE
/* Reenable the normal types, in case limits.h needs them. */
#undef char
#undef short
@@ -1520,7 +1520,7 @@ __fixunssfSI (SFtype a)
/* Integer power helper used from __builtin_powi for non-constant
exponents. */
-#if defined(L_powisf2) \
+#if (defined(L_powisf2) && LIBGCC2_HAS_SF_MODE) \
|| (defined(L_powidf2) && LIBGCC2_HAS_DF_MODE) \
|| (defined(L_powixf2) && LIBGCC2_HAS_XF_MODE) \
|| (defined(L_powitf2) && LIBGCC2_HAS_TF_MODE)
@@ -1554,7 +1554,7 @@ NAME (TYPE x, Wtype m)
#endif
-#if defined(L_mulsc3) || defined(L_divsc3) \
+#if ((defined(L_mulsc3) || defined(L_divsc3)) && LIBGCC2_HAS_SF_MODE) \
|| ((defined(L_muldc3) || defined(L_divdc3)) && LIBGCC2_HAS_DF_MODE) \
|| ((defined(L_mulxc3) || defined(L_divxc3)) && LIBGCC2_HAS_XF_MODE) \
|| ((defined(L_multc3) || defined(L_divtc3)) && LIBGCC2_HAS_TF_MODE)