Greetings, and thanks!  This is in now in Version_2_6_8pre.

(more extensive cleanups hopfully forthcoming in 2.7)

Take care,

Waldek Hebisch <[EMAIL PROTECTED]> writes:

> I have now found reason for wrong results on Intel Solaris 10.
> Namely, gcl compiled some floating point functions assuming
> that the machine is big endian.
> 
> So, one got:
> 
> >(floor 8.5)
> 
> 0
> 8.5
> 
> The code to do conversion looks brittle -- it uses unions to
> do "type convesion", which probably violates C aliasing rules.
> Also setting parametrs in system specific configuration files
> does not look like best method (2.7.0 apparently uses different
> method to determine if the machine is big endian).
> 
> So good fix would probably clean the gcl code a little.  However,
> below is almost minimal patch in the style used in 2.6.8.  It
> solves the 'floor' problems -- in fact it seems that when this
> patch is applied there is no regression in Axiom compared to
> Linux.
> 
> --- gcl/h/solaris-i386.h      Thu Jul 12 22:30:08 2007
> +++ gcl_m/h/solaris-i386.h    Fri Jul 13 22:19:10 2007
> @@ -1,3 +1,6 @@
> +#define I386
> +#define LITTLE_END
> +
>  #define ElfW(a) Elf32_ ## a
>  #if !defined(HAVE_LIBBFD) && !defined(USE_DLOPEN)
>  #define __ELF_NATIVE_CLASS 32
> 
> 
> -- 
>                               Waldek Hebisch
> [EMAIL PROTECTED] 
> 
> 
> _______________________________________________
> Axiom-developer mailing list
> [EMAIL PROTECTED]
> http://lists.nongnu.org/mailman/listinfo/axiom-developer
> 
> 
> 

-- 
Camm Maguire                                            [EMAIL PROTECTED]
==========================================================================
"The earth is but one country, and mankind its citizens."  --  Baha'u'llah


_______________________________________________
Gcl-devel mailing list
Gcl-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/gcl-devel

Reply via email to