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

2f9ed3
From FEDORA_PATCHES Mon Sep 17 00:00:00 2001
2f9ed3
From: Fedora GDB patches <invalid@email.com>
2f9ed3
Date: Fri, 27 Oct 2017 21:07:50 +0200
2f9ed3
Subject: gdb-jit-reader-multilib.patch
2f9ed3
2f9ed3
;; Fix jit-reader.h for multi-lib.
2f9ed3
;;=push+jan
2f9ed3
2f9ed3
diff --git a/gdb/configure b/gdb/configure
2f9ed3
--- a/gdb/configure
2f9ed3
+++ b/gdb/configure
2f9ed3
@@ -9705,10 +9705,12 @@ _ACEOF
2f9ed3
 
2f9ed3
 
2f9ed3
 
2f9ed3
-if test "x${ac_cv_sizeof_unsigned_long}" = "x8"; then
2f9ed3
-  TARGET_PTR="unsigned long"
2f9ed3
-elif test "x${ac_cv_sizeof_unsigned_long_long}" = "x8"; then
2f9ed3
+# Try to keep TARGET_PTR the same across archs so that jit-reader.h file
2f9ed3
+# content is the same for multilib distributions.
2f9ed3
+if test "x${ac_cv_sizeof_unsigned_long_long}" = "x8"; then
2f9ed3
   TARGET_PTR="unsigned long long"
2f9ed3
+elif test "x${ac_cv_sizeof_unsigned_long}" = "x8"; then
2f9ed3
+  TARGET_PTR="unsigned long"
2f9ed3
 elif test "x${ac_cv_sizeof_unsigned___int128}" = "x16"; then
2f9ed3
   TARGET_PTR="unsigned __int128"
2f9ed3
 else
2f9ed3
diff --git a/gdb/configure.ac b/gdb/configure.ac
2f9ed3
--- a/gdb/configure.ac
2f9ed3
+++ b/gdb/configure.ac
2f9ed3
@@ -820,10 +820,12 @@ AC_CHECK_SIZEOF(unsigned long long)
2f9ed3
 AC_CHECK_SIZEOF(unsigned long)
2f9ed3
 AC_CHECK_SIZEOF(unsigned __int128)
2f9ed3
 
2f9ed3
-if test "x${ac_cv_sizeof_unsigned_long}" = "x8"; then
2f9ed3
-  TARGET_PTR="unsigned long"
2f9ed3
-elif test "x${ac_cv_sizeof_unsigned_long_long}" = "x8"; then
2f9ed3
+# Try to keep TARGET_PTR the same across archs so that jit-reader.h file
2f9ed3
+# content is the same for multilib distributions.
2f9ed3
+if test "x${ac_cv_sizeof_unsigned_long_long}" = "x8"; then
2f9ed3
   TARGET_PTR="unsigned long long"
2f9ed3
+elif test "x${ac_cv_sizeof_unsigned_long}" = "x8"; then
2f9ed3
+  TARGET_PTR="unsigned long"
2f9ed3
 elif test "x${ac_cv_sizeof_unsigned___int128}" = "x16"; then
2f9ed3
   TARGET_PTR="unsigned __int128"
2f9ed3
 else