aboutsummaryrefslogtreecommitdiff
path: root/gcc/libgcc2.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>1999-12-09 02:00:45 +0100
committerDavid S. Miller <davem@gcc.gnu.org>1999-12-08 17:00:45 -0800
commit021b39495909bda4cf87beee437bcfcc20018b01 (patch)
treef54db85fad203a719b01ed22bdc2363afcc3034a /gcc/libgcc2.c
parentcd8998a31a6d93f850510f2392831e871670c069 (diff)
downloadgcc-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.c8
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. */