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

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