[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gm2] Mac OS X: realbitscast.mod
From: |
Michael Lambert |
Subject: |
[Gm2] Mac OS X: realbitscast.mod |
Date: |
Fri, 30 Dec 2005 14:45:11 -0500 |
User-agent: |
Thunderbird 1.5 (Macintosh/20051201) |
I've tracked down another (well, three counting compiler options) bug in
the tests on Mac OS X 10.4.3. The affected test is
testsuite/gm2/iso/pass/realbitscast.mod. I'm wondering if
defined(__i386__) might not be at least as useful as the !defined(...).
Michael
----------
% diff -u realbitscast.mod.sav realbitscast.mod
--- realbitscast.mod.sav 2005-11-18 16:54:47.000000000 -0500
+++ realbitscast.mod 2005-12-30 14:35:06.000000000 -0500
@@ -24,8 +24,9 @@
BITS96 = SET OF [0..95] ;
REAL32 = SHORTREAL;
REAL64 = REAL;
-#if !defined(__sparc__) && !defined(__x86_64)
+#if !defined(__sparc__) && !defined(__x86_64) && !defined(__ppc__)
REAL96 = LONGREAL ; (* on the __sparc__ SIZE(LONGREAL) =
SIZE(REAL) *)
+ (* for __ppc__, LONGREAL is 64 bits on gcc-3.3 *)
(* and on the x86_64 LONGREAL is 128 bits *)
#endif
@@ -34,7 +35,7 @@
b64 : BITS64;
r32 : REAL32;
r64 : REAL64;
-#if !defined(__sparc__) && !defined(__x86_64)
+#if !defined(__sparc__) && !defined(__x86_64) && !defined(__ppc__)
b96 : BITS96 ;
r96 : REAL96 ;
#endif
@@ -43,7 +44,7 @@
r32 := 1.0 ;
b32 := CAST(BITS32,r32) ;
b64 := CAST(BITS64,r64) ;
-#if !defined(__sparc__) && !defined(__x86_64)
+#if !defined(__sparc__) && !defined(__x86_64) && !defined(__ppc__)
b96 := CAST(BITS96,r96)
#endif
END realbitscast.
----------
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gm2] Mac OS X: realbitscast.mod,
Michael Lambert <=