diff options
author | krebbel <krebbel@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-02-05 15:02:50 +0000 |
---|---|---|
committer | krebbel <krebbel@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-02-05 15:02:50 +0000 |
commit | 896dc54cd4d7d7c2a6a1000e0466e02e9785cd68 (patch) | |
tree | bbe75df4514efd4c9dec933a42b9d01970571bae /libgcc | |
parent | ae3a21c97a3c4fe94c1702353834bdb36cb54edc (diff) | |
download | gcc-896dc54cd4d7d7c2a6a1000e0466e02e9785cd68.tar.gz |
2014-02-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
* config.host: Include t-floattodi also for s390x.
* config/s390/32/_fixdfdi.c: Omit in 64 bit mode.
* config/s390/32/_fixsfdi.c: Likewise.
* config/s390/32/_fixtfdi.c: Likewise.
* config/s390/32/_fixunsdfdi.c: Likewise.
* config/s390/32/_fixunssfdi.c: Likewise.
* config/s390/32/_fixunstfdi.c: Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@207507 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgcc')
-rw-r--r-- | libgcc/ChangeLog | 10 | ||||
-rw-r--r-- | libgcc/config.host | 2 | ||||
-rw-r--r-- | libgcc/config/s390/32/_fixdfdi.c | 3 | ||||
-rw-r--r-- | libgcc/config/s390/32/_fixsfdi.c | 3 | ||||
-rw-r--r-- | libgcc/config/s390/32/_fixtfdi.c | 3 | ||||
-rw-r--r-- | libgcc/config/s390/32/_fixunsdfdi.c | 3 | ||||
-rw-r--r-- | libgcc/config/s390/32/_fixunssfdi.c | 3 | ||||
-rw-r--r-- | libgcc/config/s390/32/_fixunstfdi.c | 4 |
8 files changed, 30 insertions, 1 deletions
diff --git a/libgcc/ChangeLog b/libgcc/ChangeLog index f561edd2274..68b7eaf23cf 100644 --- a/libgcc/ChangeLog +++ b/libgcc/ChangeLog @@ -1,3 +1,13 @@ +2014-02-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com> + + * config.host: Include t-floattodi also for s390x. + * config/s390/32/_fixdfdi.c: Omit in 64 bit mode. + * config/s390/32/_fixsfdi.c: Likewise. + * config/s390/32/_fixtfdi.c: Likewise. + * config/s390/32/_fixunsdfdi.c: Likewise. + * config/s390/32/_fixunssfdi.c: Likewise. + * config/s390/32/_fixunstfdi.c: Likewise. + 2014-02-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> PR target/59788 diff --git a/libgcc/config.host b/libgcc/config.host index cc7becf15ef..902a5827a1b 100644 --- a/libgcc/config.host +++ b/libgcc/config.host @@ -1013,7 +1013,7 @@ s390-*-linux*) md_unwind_header=s390/linux-unwind.h ;; s390x-*-linux*) - tmake_file="${tmake_file} s390/t-crtstuff s390/t-linux" + tmake_file="${tmake_file} s390/t-crtstuff s390/t-linux s390/32/t-floattodi" md_unwind_header=s390/linux-unwind.h ;; s390x-ibm-tpf*) diff --git a/libgcc/config/s390/32/_fixdfdi.c b/libgcc/config/s390/32/_fixdfdi.c index 1c6954c7067..b1ba06d7335 100644 --- a/libgcc/config/s390/32/_fixdfdi.c +++ b/libgcc/config/s390/32/_fixdfdi.c @@ -24,6 +24,8 @@ a copy of the GCC Runtime Library Exception along with this program; see the files COPYING3 and COPYING.RUNTIME respectively. If not, see <http://www.gnu.org/licenses/>. */ +#ifndef __s390x__ + #define EXPD(fp) (((fp.l.upper) >> 20) & 0x7FF) #define EXCESSD 1022 #define SIGNBIT 0x80000000 @@ -94,3 +96,4 @@ __fixdfdi (double a1) return (SIGND (dl1) ? -l : l); } +#endif /* !__s390x__ */ diff --git a/libgcc/config/s390/32/_fixsfdi.c b/libgcc/config/s390/32/_fixsfdi.c index eaabd18d0e0..dbf40b43a72 100644 --- a/libgcc/config/s390/32/_fixsfdi.c +++ b/libgcc/config/s390/32/_fixsfdi.c @@ -24,6 +24,8 @@ a copy of the GCC Runtime Library Exception along with this program; see the files COPYING3 and COPYING.RUNTIME respectively. If not, see <http://www.gnu.org/licenses/>. */ +#ifndef __s390x__ + #define EXP(fp) (((fp.l) >> 23) & 0xFF) #define EXCESS 126 #define SIGNBIT 0x80000000 @@ -90,3 +92,4 @@ __fixsfdi (float a1) return (SIGN (fl1) ? -l : l); } +#endif /* !__s390x__ */ diff --git a/libgcc/config/s390/32/_fixtfdi.c b/libgcc/config/s390/32/_fixtfdi.c index 51807d19d0f..50b6c9b46ac 100644 --- a/libgcc/config/s390/32/_fixtfdi.c +++ b/libgcc/config/s390/32/_fixtfdi.c @@ -24,6 +24,8 @@ a copy of the GCC Runtime Library Exception along with this program; see the files COPYING3 and COPYING.RUNTIME respectively. If not, see <http://www.gnu.org/licenses/>. */ +#ifndef __s390x__ + #define EXPD(fp) (((fp.l.i[0]) >> 16) & 0x7FFF) #define EXPONENT_BIAS 16383 #define MANTISSA_BITS 112 @@ -99,3 +101,4 @@ __fixtfdi (long double a1) return SIGND (dl1) ? -(l >> -exp) : l >> -exp; } +#endif /* !__s390x__ */ diff --git a/libgcc/config/s390/32/_fixunsdfdi.c b/libgcc/config/s390/32/_fixunsdfdi.c index 7786bdc3458..84cc8bc1a38 100644 --- a/libgcc/config/s390/32/_fixunsdfdi.c +++ b/libgcc/config/s390/32/_fixunsdfdi.c @@ -24,6 +24,8 @@ a copy of the GCC Runtime Library Exception along with this program; see the files COPYING3 and COPYING.RUNTIME respectively. If not, see <http://www.gnu.org/licenses/>. */ +#ifndef __s390x__ + #define EXPD(fp) (((fp.l.upper) >> 20) & 0x7FF) #define EXCESSD 1022 #define SIGNBIT 0x80000000 @@ -91,3 +93,4 @@ __fixunsdfdi (double a1) return l; } +#endif /* !__s390x__ */ diff --git a/libgcc/config/s390/32/_fixunssfdi.c b/libgcc/config/s390/32/_fixunssfdi.c index b007cf644ce..aeb477a4ee8 100644 --- a/libgcc/config/s390/32/_fixunssfdi.c +++ b/libgcc/config/s390/32/_fixunssfdi.c @@ -24,6 +24,8 @@ a copy of the GCC Runtime Library Exception along with this program; see the files COPYING3 and COPYING.RUNTIME respectively. If not, see <http://www.gnu.org/licenses/>. */ +#ifndef __s390x__ + #define EXP(fp) (((fp.l) >> 23) & 0xFF) #define EXCESS 126 #define SIGNBIT 0x80000000 @@ -87,3 +89,4 @@ __fixunssfdi (float a1) return l; } +#endif /* !__s390x__ */ diff --git a/libgcc/config/s390/32/_fixunstfdi.c b/libgcc/config/s390/32/_fixunstfdi.c index cf4fbdb9ba7..0e2c61fb270 100644 --- a/libgcc/config/s390/32/_fixunstfdi.c +++ b/libgcc/config/s390/32/_fixunstfdi.c @@ -24,6 +24,8 @@ a copy of the GCC Runtime Library Exception along with this program; see the files COPYING3 and COPYING.RUNTIME respectively. If not, see <http://www.gnu.org/licenses/>. */ +#ifndef __s390x__ + #define EXPD(fp) (((fp.l.i[0]) >> 16) & 0x7FFF) #define EXPONENT_BIAS 16383 #define MANTISSA_BITS 112 @@ -94,3 +96,5 @@ __fixunstfdi (long double a1) return l >> -exp; } + +#endif /* !__s390x__ */ |