diff options
author | Jakub Jelinek <jakub@redhat.com> | 1999-12-09 02:00:45 +0100 |
---|---|---|
committer | David S. Miller <davem@gcc.gnu.org> | 1999-12-08 17:00:45 -0800 |
commit | 021b39495909bda4cf87beee437bcfcc20018b01 (patch) | |
tree | f54db85fad203a719b01ed22bdc2363afcc3034a /gcc/libgcc2.c | |
parent | cd8998a31a6d93f850510f2392831e871670c069 (diff) | |
download | gcc-021b39495909bda4cf87beee437bcfcc20018b01.zip gcc-021b39495909bda4cf87beee437bcfcc20018b01.tar.gz gcc-021b39495909bda4cf87beee437bcfcc20018b01.tar.bz2 |
longlong.h: Merge in changes from glibc.
* longlong.h: Merge in changes from glibc.
Also don't clobber %g2 register in 32bit SPARC assembly, so that
-mno-app-regs libgcc can be compiled.
* libgcc2.c: Add defines so that the updated longlong.h
can be used in libgcc2.a. Also, make sure on most architectures
(at least on all which have optimized code in longlong.h defined
for) {SI,W}_TYPE_SIZE is suitable for preprocessor tests.
From-SVN: r30836
Diffstat (limited to 'gcc/libgcc2.c')
-rw-r--r-- | gcc/libgcc2.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/libgcc2.c b/gcc/libgcc2.c index 861e6d9..158f374 100644 --- a/gcc/libgcc2.c +++ b/gcc/libgcc2.c @@ -127,7 +127,15 @@ typedef int word_type __attribute__ ((mode (__word__))); #define float bogus_type #define double bogus_type +#if BITS_PER_UNIT == 8 +#define SI_TYPE_SIZE 32 +#else #define SI_TYPE_SIZE (sizeof (SItype) * BITS_PER_UNIT) +#endif +#define W_TYPE_SIZE SI_TYPE_SIZE +#define UWtype USItype +#define UHWtype USItype +#define UDWtype UDItype /* DIstructs are pairs of SItype values in the order determined by LIBGCC2_WORDS_BIG_ENDIAN. */ |