summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorPeter Valchev <pvalchev@cvs.openbsd.org>2002-01-27 18:47:03 +0000
committerPeter Valchev <pvalchev@cvs.openbsd.org>2002-01-27 18:47:03 +0000
commit9410bc80e4bea2cf844bcd33d9d7884a52d8a2da (patch)
treeeec1b7f27c22115713649154de99a0b062a57044 /gnu
parentfebb00f87ba395ec120db73c05a68a96e216a242 (diff)
Make f77(1) work on sparc64. ok espie
Diffstat (limited to 'gnu')
-rw-r--r--gnu/egcs/gcc/f/target.h14
1 files changed, 9 insertions, 5 deletions
diff --git a/gnu/egcs/gcc/f/target.h b/gnu/egcs/gcc/f/target.h
index 467f10298cf..4efc9734855 100644
--- a/gnu/egcs/gcc/f/target.h
+++ b/gnu/egcs/gcc/f/target.h
@@ -234,6 +234,10 @@ the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
#define FFETARGET_f2cTYLOGICAL2 13
#define FFETARGET_f2cTYQUAD 14
+#if !defined(__alpha__) && (!defined(__sparc__) || (!defined(__sparcv9) && !defined(__arch64__))) && (!defined(__ia64__) || !defined(__LP64__))
+#define FFETARGET_32bit_longs
+#endif
+
/* Typedefs. */
typedef unsigned char ffetargetAlign; /* ffetargetOffset for alignment. */
@@ -247,7 +251,7 @@ typedef long long ffetargetOffset;
#define ffetargetOffset_f "ll"
#if FFETARGET_okINTEGER1
-#ifndef __alpha__
+#ifdef FFETARGET_32bit_longs
typedef long int ffetargetInteger1;
#define ffetargetInteger1_f "l"
#else
@@ -288,7 +292,7 @@ typedef ? ffetargetInteger8;
?
#endif
#if FFETARGET_okLOGICAL1
-#ifndef __alpha__
+#ifdef FFETARGET_32bit_longs
typedef long int ffetargetLogical1;
#define ffetargetLogical1_f "l"
#else
@@ -330,7 +334,7 @@ typedef ? ffetargetLogical8;
#endif
#if FFETARGET_okREAL1
#ifdef REAL_ARITHMETIC
-#ifndef __alpha__
+#ifdef FFETARGET_32bit_longs
typedef long int ffetargetReal1;
#define ffetargetReal1_f "l"
#define ffetarget_cvt_r1_to_rv_ REAL_VALUE_UNTO_TARGET_SINGLE
@@ -354,7 +358,7 @@ typedef float ffetargetReal1;
#endif
#if FFETARGET_okREAL2
#ifdef REAL_ARITHMETIC
-#ifndef __alpha__
+#ifdef FFETARGET_32bit_longs
typedef struct
{
long int v[2];
@@ -1496,7 +1500,7 @@ void *ffetarget_memcpy_ (void *dst, void *src, size_t len);
#define ffetarget_init_2()
#define ffetarget_init_3()
#define ffetarget_init_4()
-#ifndef __alpha__
+#ifdef FFETARGET_32bit_longs
#define ffetarget_integerdefault_is_magical(i) \
(((unsigned long int) i) == FFETARGET_integerBIG_MAGICAL)
#else