diff options
author | Xavier Leroy <xavier.leroy@inria.fr> | 2003-03-10 17:04:00 +0000 |
---|---|---|
committer | Xavier Leroy <xavier.leroy@inria.fr> | 2003-03-10 17:04:00 +0000 |
commit | ae2225b064c446b4c8cd7bee40b595eb0fb367e3 (patch) | |
tree | 61ea929e19ee885a2d93c6f5f6e12701bf395c79 | |
parent | 0e5a1b35647b4eec61e4e2e77ede63288a9e76c7 (diff) |
Cas particulier Sparc pour la determination des contraintes d'alignment des flottants (PR#1521)
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@5429 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
-rwxr-xr-x | configure | 30 |
1 files changed, 19 insertions, 11 deletions
@@ -391,17 +391,25 @@ esac # Determine alignment constraints -sh ./runtest dblalign.c -case $? in - 0) echo "Doubles can be word-aligned." - echo "#undef ARCH_ALIGN_DOUBLE" >> m.h;; - 1) echo "Doubles must be doubleword-aligned." - echo "#define ARCH_ALIGN_DOUBLE" >> m.h;; - *) echo "Something went wrong during alignment determination for doubles." - echo "I'm going to assume this architecture has alignment constraints over doubles." - echo "That's a safe bet: Objective Caml will work even if" - echo "this architecture has actually no alignment constraints." - echo "#define ARCH_ALIGN_DOUBLE" >> m.h;; +case "$host" in + sparc-*-*) + # On Sparc V9 with certain versions of gcc, determination of double + # alignment is not reliable (PR#1521), hence force it + echo "Doubles must be doubleword-aligned." + echo "#define ARCH_ALIGN_DOUBLE" >> m.h;; + *) + sh ./runtest dblalign.c + case $? in + 0) echo "Doubles can be word-aligned." + echo "#undef ARCH_ALIGN_DOUBLE" >> m.h;; + 1) echo "Doubles must be doubleword-aligned." + echo "#define ARCH_ALIGN_DOUBLE" >> m.h;; + *) echo "Something went wrong during alignment determination for doubles." + echo "I'm going to assume this architecture has alignment constraints over doubles." + echo "That's a safe bet: Objective Caml will work even if" + echo "this architecture has actually no alignment constraints." + echo "#define ARCH_ALIGN_DOUBLE" >> m.h;; + esac;; esac if $int64_native; then |