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

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