Guest User

Untitled

a guest
Feb 16th, 2019
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.18 KB | None | 0 0
  1. From 421514fe7ca2baa252afb6c79c4bd60f13ce0063 Mon Sep 17 00:00:00 2001
  2. From: Stephane Glondu <steph@glondu.net>
  3. Date: Sat, 28 May 2011 23:55:08 +0200
  4. Subject: [PATCH] Force aligned access for double and int64 on mips*
  5.  
  6. Some mips machines accept unaligned accesses, others don't. Therefore,
  7. do not rely on auto-detection.
  8.  
  9. Signed-off-by: Stephane Glondu <steph@glondu.net>
  10. ---
  11. configure | 4 ++--
  12. 1 files changed, 2 insertions(+), 2 deletions(-)
  13.  
  14. diff --git a/configure b/configure
  15. index 7b58410..b67ca4c 100755
  16. --- a/configure
  17. +++ b/configure
  18. @@ -433,7 +433,7 @@ esac
  19. # Determine alignment constraints
  20.  
  21. case "$host" in
  22. - sparc*-*-*|hppa*-*-*|arm*-*-*)
  23. + sparc*-*-*|hppa*-*-*|arm*-*-*|mips*-*-*)
  24. # On Sparc V9 with certain versions of gcc, determination of double
  25. # alignment is not reliable (PR#1521), hence force it.
  26. # Same goes for hppa.
  27. @@ -466,7 +466,7 @@ esac
  28. if $int64_native; then
  29. case "$host" in
  30. # PR#5088: autodetection is unreliable on ARM
  31. - sparc*-*-*|hppa*-*-*|arm*-*-*)
  32. + sparc*-*-*|hppa*-*-*|arm*-*-*|mips*-*-*)
  33. if test $2 = 8; then
  34. echo "64-bit integers can be word-aligned."
  35. echo "#undef ARCH_ALIGN_INT64" >> m.h
  36. --
  37. 1.7.4.4
Add Comment
Please, Sign In to add comment