aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2007-07-03 16:35:20 +0000
committerEric Christopher <echristo@gcc.gnu.org>2007-07-03 16:35:20 +0000
commit66965e909473fef6462b537cdc4010b79d86159e (patch)
tree039c694a77d0c66be4f72eee4bc34d59c2de9a3d /gcc
parente656a4656e61366599bce12256e22b019e3cd65b (diff)
downloadgcc-66965e909473fef6462b537cdc4010b79d86159e.zip
gcc-66965e909473fef6462b537cdc4010b79d86159e.tar.gz
gcc-66965e909473fef6462b537cdc4010b79d86159e.tar.bz2
libgcc2.h: Conditionally declare __bswapsi2 and __bswapdi2.
2007-07-03 Eric Christopher <echristo@gmail.com> * libgcc2.h: Conditionally declare __bswapsi2 and __bswapdi2. From-SVN: r126263
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/libgcc2.h9
2 files changed, 12 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index af3a58e..59d4524 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2007-07-03 Eric Christopher <echristo@gmail.com>
+
+ * libgcc2.h: Conditionally declare __bswapsi2 and
+ __bswapdi2.
+
2007-07-03 H.J. Lu <hongjiu.lu@intel.com>
* ddg.c (check_sccs): Define only if ENABLE_CHECKING is
diff --git a/gcc/libgcc2.h b/gcc/libgcc2.h
index c6084dc..d6b980e 100644
--- a/gcc/libgcc2.h
+++ b/gcc/libgcc2.h
@@ -342,18 +342,23 @@ extern UWtype __udiv_w_sdiv (UWtype *, UWtype, UWtype, UWtype);
extern word_type __cmpdi2 (DWtype, DWtype);
extern word_type __ucmpdi2 (DWtype, DWtype);
+#if MIN_UNITS_PER_WORD > 1
+extern SItype __bswapsi2 (SItype);
+#endif
+#if LONG_LONG_TYPE_SIZE > 32
+extern DItype __bswapdi2 (DItype);
+#endif
+
extern Wtype __absvSI2 (Wtype);
extern Wtype __addvSI3 (Wtype, Wtype);
extern Wtype __subvSI3 (Wtype, Wtype);
extern Wtype __mulvSI3 (Wtype, Wtype);
extern Wtype __negvSI2 (Wtype);
-extern SItype __bswapsi2 (SItype);
extern DWtype __absvDI2 (DWtype);
extern DWtype __addvDI3 (DWtype, DWtype);
extern DWtype __subvDI3 (DWtype, DWtype);
extern DWtype __mulvDI3 (DWtype, DWtype);
extern DWtype __negvDI2 (DWtype);
-extern DItype __bswapdi2 (DItype);
#ifdef COMPAT_SIMODE_TRAPPING_ARITHMETIC
extern SItype __absvsi2 (SItype);