Skip to content

Commit b2a93bb

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

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
@@ -9680,10 +9680,12 @@ _ACEOF
96809680

96819681

96829682

9683-
if test "x${ac_cv_sizeof_unsigned_long}" = "x8"; then
9684-
TARGET_PTR="unsigned long"
9685-
elif test "x${ac_cv_sizeof_unsigned_long_long}" = "x8"; then
9683+
# Try to keep TARGET_PTR the same across archs so that jit-reader.h file
9684+
# content is the same for multilib distributions.
9685+
if test "x${ac_cv_sizeof_unsigned_long_long}" = "x8"; then
96869686
TARGET_PTR="unsigned long long"
9687+
elif test "x${ac_cv_sizeof_unsigned_long}" = "x8"; then
9688+
TARGET_PTR="unsigned long"
96879689
elif test "x${ac_cv_sizeof_unsigned___int128}" = "x16"; then
96889690
TARGET_PTR="unsigned __int128"
96899691
else

gdb/configure.ac

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -843,10 +843,12 @@ AC_CHECK_SIZEOF(unsigned long long)
843843
AC_CHECK_SIZEOF(unsigned long)
844844
AC_CHECK_SIZEOF(unsigned __int128)
845845

846-
if test "x${ac_cv_sizeof_unsigned_long}" = "x8"; then
847-
TARGET_PTR="unsigned long"
848-
elif test "x${ac_cv_sizeof_unsigned_long_long}" = "x8"; then
846+
# Try to keep TARGET_PTR the same across archs so that jit-reader.h file
847+
# content is the same for multilib distributions.
848+
if test "x${ac_cv_sizeof_unsigned_long_long}" = "x8"; then
849849
TARGET_PTR="unsigned long long"
850+
elif test "x${ac_cv_sizeof_unsigned_long}" = "x8"; then
851+
TARGET_PTR="unsigned long"
850852
elif test "x${ac_cv_sizeof_unsigned___int128}" = "x16"; then
851853
TARGET_PTR="unsigned __int128"
852854
else

0 commit comments

Comments
 (0)