Skip to content

Commit 6076039

Browse files
ivanivanov884jeffmahoney
authored andcommitted
gdb-jit-reader-multilib.patch
;; Fix jit-reader.h for multi-lib. ;;=push+jan
1 parent 305890b commit 6076039

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

gdb/configure

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9702,10 +9702,12 @@ _ACEOF
97029702

97039703

97049704

9705-
if test "x${ac_cv_sizeof_unsigned_long}" = "x8"; then
9706-
TARGET_PTR="unsigned long"
9707-
elif test "x${ac_cv_sizeof_unsigned_long_long}" = "x8"; then
9705+
# Try to keep TARGET_PTR the same across archs so that jit-reader.h file
9706+
# content is the same for multilib distributions.
9707+
if test "x${ac_cv_sizeof_unsigned_long_long}" = "x8"; then
97089708
TARGET_PTR="unsigned long long"
9709+
elif test "x${ac_cv_sizeof_unsigned_long}" = "x8"; then
9710+
TARGET_PTR="unsigned long"
97099711
elif test "x${ac_cv_sizeof_unsigned___int128}" = "x16"; then
97109712
TARGET_PTR="unsigned __int128"
97119713
else

gdb/configure.ac

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -820,10 +820,12 @@ AC_CHECK_SIZEOF(unsigned long long)
820820
AC_CHECK_SIZEOF(unsigned long)
821821
AC_CHECK_SIZEOF(unsigned __int128)
822822

823-
if test "x${ac_cv_sizeof_unsigned_long}" = "x8"; then
824-
TARGET_PTR="unsigned long"
825-
elif test "x${ac_cv_sizeof_unsigned_long_long}" = "x8"; then
823+
# Try to keep TARGET_PTR the same across archs so that jit-reader.h file
824+
# content is the same for multilib distributions.
825+
if test "x${ac_cv_sizeof_unsigned_long_long}" = "x8"; then
826826
TARGET_PTR="unsigned long long"
827+
elif test "x${ac_cv_sizeof_unsigned_long}" = "x8"; then
828+
TARGET_PTR="unsigned long"
827829
elif test "x${ac_cv_sizeof_unsigned___int128}" = "x16"; then
828830
TARGET_PTR="unsigned __int128"
829831
else

0 commit comments

Comments
 (0)