Skip to contentSkip to conversation

configure: Use -mlittle-endian instead of -mlittle for ppc64

PATCH In review [email protected] 3 participants 3 messages Jan 19, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 configure: Use -mlittle-endian instead of -mlittle for ppc64

From: Miroslav Rezanina <[email protected]>

GCC options -mlittle and -mlittle-endian are equivalent on ppc64 architecture. However, clang supports only -mlittle-endian option.

Use longer form in configure to properly support both GCC and clang compiler.

---
 configure | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
configure +1 -1
index e1a31fb332..e63c78ca67 100755
@@ -658,7 +658,7 @@ case "$cpu" in
     CPU_CFLAGS="-m64 -mbig" ;;
   ppc64le)
     cpu="ppc64"
-    CPU_CFLAGS="-m64 -mlittle" ;;
+    CPU_CFLAGS="-m64 -mlittle-endian" ;;
 
   s390)
     CPU_CFLAGS="-m31" ;;
Signature · 1 line
2.27.0
#1 lore raw
Quoted 18 lines · On 1/19/22 10:56, [email protected] wrote:

From: Miroslav Rezanina <[email protected]>

GCC options -mlittle and -mlittle-endian are equivalent on ppc64 architecture. However, clang supports only -mlittle-endian option.

Use longer form in configure to properly support both GCC and clang compiler.

---
  configure | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
configure +0 -0
index e1a31fb332..e63c78ca67 100755

configure case "$cpu" in · line 664

Quoted 8 lines
configure +1 -1
@@ -658,7 +658,7 @@ case "$cpu" in
      CPU_CFLAGS="-m64 -mbig" ;;
    ppc64le)
      cpu="ppc64"
-    CPU_CFLAGS="-m64 -mlittle" ;;
+    CPU_CFLAGS="-m64 -mlittle-endian" ;;
 
    s390)
      CPU_CFLAGS="-m31" ;;

Does -mbig need the same one line above?

Paolo

#2 lore raw
Quoted 14 lines · Paolo Bonzini
Quoted 13 lines · On 1/19/22 10:56, [email protected] wrote:

From: Miroslav Rezanina <[email protected]>

GCC options -mlittle and -mlittle-endian are equivalent on ppc64 architecture. However, clang supports only -mlittle-endian option.

Use longer form in configure to properly support both GCC and clang compiler.

---
  configure | 2 +-

  1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 14 lines
Quoted 7 lines
configure +0 -0
index e1a31fb332..e63c78ca67 100755
@@ -658,7 +658,7 @@ case "$cpu" in
       CPU_CFLAGS="-m64 -mbig" ;;
     ppc64le)
Quoted 5 lines

      cpu="ppc64"
-    CPU_CFLAGS="-m64 -mlittle" ;;
+    CPU_CFLAGS="-m64 -mlittle-endian" ;;
      s390)
      CPU_CFLAGS="-m31" ;;

Does -mbig need the same one line above?

Yes, and tests/tcg/configure.sh needs that change too.