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

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