aboutsummaryrefslogtreecommitdiff
path: root/libgcc
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2016-04-25 11:13:35 +0000
committerNick Clifton <nickc@gcc.gnu.org>2016-04-25 11:13:35 +0000
commit2de1cf8c4ba5a043ea3d0a3998cd789cc3d8b9f5 (patch)
tree69450029e2c3c03bea579396b7053fb3d5ecc091 /libgcc
parentab99f46749d0f746c50dde27e845ed6e5f06aee4 (diff)
downloadgcc-2de1cf8c4ba5a043ea3d0a3998cd789cc3d8b9f5.zip
gcc-2de1cf8c4ba5a043ea3d0a3998cd789cc3d8b9f5.tar.gz
gcc-2de1cf8c4ba5a043ea3d0a3998cd789cc3d8b9f5.tar.bz2
cmpd.c (__mspabi_cmpf): Add prototype.
* config/msp430/cmpd.c (__mspabi_cmpf): Add prototype. (__mspabi_cmpd): Likewise. * config/msp430/floathidf.c (__floathidf): Likewise. * config/msp430/floathisf.c (__floathisf): Likewise * config/msp430/floatunhidf.c (__floatunssidf): Likewise. * config/msp430/floatunhisf.c (__floatunshisf): Likewise. * config/msp430/lib2shift.c (__ashlsi3): Take a signed char as the second parameter. (__ashrsi3): Likewise. From-SVN: r235409
Diffstat (limited to 'libgcc')
-rw-r--r--libgcc/ChangeLog12
-rw-r--r--libgcc/config/msp430/cmpd.c6
-rw-r--r--libgcc/config/msp430/floathidf.c2
-rw-r--r--libgcc/config/msp430/floathisf.c2
-rw-r--r--libgcc/config/msp430/floatunhidf.c2
-rw-r--r--libgcc/config/msp430/floatunhisf.c2
-rw-r--r--libgcc/config/msp430/lib2shift.c12
7 files changed, 32 insertions, 6 deletions
diff --git a/libgcc/ChangeLog b/libgcc/ChangeLog
index 684c681..b671a56 100644
--- a/libgcc/ChangeLog
+++ b/libgcc/ChangeLog
@@ -1,3 +1,15 @@
+2016-04-25 Nick Clifton <nickc@redhat.com>
+
+ * config/msp430/cmpd.c (__mspabi_cmpf): Add prototype.
+ (__mspabi_cmpd): Likewise.
+ * config/msp430/floathidf.c (__floathidf): Likewise.
+ * config/msp430/floathisf.c (__floathisf): Likewise
+ * config/msp430/floatunhidf.c (__floatunssidf): Likewise.
+ * config/msp430/floatunhisf.c (__floatunshisf): Likewise.
+ * config/msp430/lib2shift.c (__ashlsi3): Take a signed char as the
+ second parameter.
+ (__ashrsi3): Likewise.
+
2016-04-21 Waldemar Brodkorb <wbx@openadk.org>
* config/m68k/linux-atomic.c: Do not include unistd.h
diff --git a/libgcc/config/msp430/cmpd.c b/libgcc/config/msp430/cmpd.c
index 03e690d..c65c466 100644
--- a/libgcc/config/msp430/cmpd.c
+++ b/libgcc/config/msp430/cmpd.c
@@ -1,4 +1,7 @@
/* Public domain. */
+
+int __mspabi_cmpf (float, float);
+
int
__mspabi_cmpf (float x, float y)
{
@@ -8,6 +11,9 @@ __mspabi_cmpf (float x, float y)
return 1;
return 0;
}
+
+int __mspabi_cmpd (double, double);
+
int
__mspabi_cmpd (double x, double y)
{
diff --git a/libgcc/config/msp430/floathidf.c b/libgcc/config/msp430/floathidf.c
index 304731d..a114422 100644
--- a/libgcc/config/msp430/floathidf.c
+++ b/libgcc/config/msp430/floathidf.c
@@ -1,6 +1,8 @@
/* Public domain. */
extern double __floatsidf (long);
+double __floathidf (int);
+
double
__floathidf (int u)
{
diff --git a/libgcc/config/msp430/floathisf.c b/libgcc/config/msp430/floathisf.c
index 64e5d80..4b4c16c 100644
--- a/libgcc/config/msp430/floathisf.c
+++ b/libgcc/config/msp430/floathisf.c
@@ -4,6 +4,8 @@ typedef float SFtype __attribute__ ((mode (SF)));
extern SFtype __floatsisf (unsigned long);
+SFtype __floathisf (HItype);
+
SFtype
__floathisf (HItype u)
{
diff --git a/libgcc/config/msp430/floatunhidf.c b/libgcc/config/msp430/floatunhidf.c
index f13b550..a02a953 100644
--- a/libgcc/config/msp430/floatunhidf.c
+++ b/libgcc/config/msp430/floatunhidf.c
@@ -5,6 +5,8 @@ typedef float DFtype __attribute__ ((mode (DF)));
extern DFtype __floatunsidf (unsigned long);
+DFtype __floatunhidf (UHItype);
+
DFtype
__floatunhidf (UHItype u)
{
diff --git a/libgcc/config/msp430/floatunhisf.c b/libgcc/config/msp430/floatunhisf.c
index ea920bd..423627a 100644
--- a/libgcc/config/msp430/floatunhisf.c
+++ b/libgcc/config/msp430/floatunhisf.c
@@ -5,6 +5,8 @@ typedef float SFtype __attribute__ ((mode (SF)));
extern SFtype __floatunsisf (unsigned long);
+SFtype __floatunhisf (UHItype);
+
SFtype
__floatunhisf (UHItype u)
{
diff --git a/libgcc/config/msp430/lib2shift.c b/libgcc/config/msp430/lib2shift.c
index d7e4d24..57e70df 100644
--- a/libgcc/config/msp430/lib2shift.c
+++ b/libgcc/config/msp430/lib2shift.c
@@ -28,10 +28,10 @@ typedef unsigned int uint32_type __attribute__ ((mode (SI)));
typedef int sint16_type __attribute__ ((mode (HI)));
typedef unsigned int uint16_type __attribute__ ((mode (HI)));
-uint32_type __ashlsi3 (uint32_type in, char bit);
-sint32_type __ashrsi3 (sint32_type in, char bit);
-int __clrsbhi2 (sint16_type x);
-extern int __clrsbsi2 (sint32_type x);
+uint32_type __ashlsi3 (uint32_type, signed char);
+sint32_type __ashrsi3 (sint32_type, signed char);
+int __clrsbhi2 (sint16_type);
+extern int __clrsbsi2 (sint32_type);
typedef struct
{
@@ -43,7 +43,7 @@ typedef struct
} dd;
uint32_type
-__ashlsi3 (uint32_type in, char bit)
+__ashlsi3 (uint32_type in, signed char bit)
{
uint16_type h, l;
dd d;
@@ -77,7 +77,7 @@ __ashlsi3 (uint32_type in, char bit)
}
sint32_type
-__ashrsi3 (sint32_type in, char bit)
+__ashrsi3 (sint32_type in, signed char bit)
{
sint16_type h;
uint16_type l;