Blame SOURCES/gdb-jit-reader-multilib.patch

e1d87d
diff --git a/gdb/configure b/gdb/configure
e1d87d
index 7ff74ba..00a5b5b 100755
e1d87d
--- a/gdb/configure
e1d87d
+++ b/gdb/configure
e1d87d
@@ -7382,10 +7382,12 @@ _ACEOF
e1d87d
 
e1d87d
 
e1d87d
 
e1d87d
-if test "x${ac_cv_sizeof_unsigned_long}" = "x8"; then
e1d87d
-  TARGET_PTR="unsigned long"
e1d87d
-elif test "x${ac_cv_sizeof_unsigned_long_long}" = "x8"; then
e1d87d
+# Try to keep TARGET_PTR the same across archs so that jit-reader.h file
e1d87d
+# content is the same for multilib distributions.
e1d87d
+if test "x${ac_cv_sizeof_unsigned_long_long}" = "x8"; then
e1d87d
   TARGET_PTR="unsigned long long"
e1d87d
+elif test "x${ac_cv_sizeof_unsigned_long}" = "x8"; then
e1d87d
+  TARGET_PTR="unsigned long"
e1d87d
 elif test "x${ac_cv_sizeof_unsigned___int128}" = "x16"; then
e1d87d
   TARGET_PTR="unsigned __int128"
e1d87d
 else
e1d87d
diff --git a/gdb/configure.ac b/gdb/configure.ac
e1d87d
index ec776d7..c02ace9 100644
e1d87d
--- a/gdb/configure.ac
e1d87d
+++ b/gdb/configure.ac
e1d87d
@@ -648,10 +648,12 @@ AC_CHECK_SIZEOF(unsigned long long)
e1d87d
 AC_CHECK_SIZEOF(unsigned long)
e1d87d
 AC_CHECK_SIZEOF(unsigned __int128)
e1d87d
 
e1d87d
-if test "x${ac_cv_sizeof_unsigned_long}" = "x8"; then
e1d87d
-  TARGET_PTR="unsigned long"
e1d87d
-elif test "x${ac_cv_sizeof_unsigned_long_long}" = "x8"; then
e1d87d
+# Try to keep TARGET_PTR the same across archs so that jit-reader.h file
e1d87d
+# content is the same for multilib distributions.
e1d87d
+if test "x${ac_cv_sizeof_unsigned_long_long}" = "x8"; then
e1d87d
   TARGET_PTR="unsigned long long"
e1d87d
+elif test "x${ac_cv_sizeof_unsigned_long}" = "x8"; then
e1d87d
+  TARGET_PTR="unsigned long"
e1d87d
 elif test "x${ac_cv_sizeof_unsigned___int128}" = "x16"; then
e1d87d
   TARGET_PTR="unsigned __int128"
e1d87d
 else