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