Skip to content

Commit

Permalink
gdb-jit-reader-multilib.patch
Browse files Browse the repository at this point in the history
;; Fix jit-reader.h for multi-lib.
;;=push+jan
  • Loading branch information
ivanivanov884 authored and jeffmahoney committed Apr 14, 2019
1 parent 03f0452 commit b2a93bb
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
8 changes: 5 additions & 3 deletions gdb/configure
Original file line number Diff line number Diff line change
Expand Up @@ -9680,10 +9680,12 @@ _ACEOF



if test "x${ac_cv_sizeof_unsigned_long}" = "x8"; then
TARGET_PTR="unsigned long"
elif test "x${ac_cv_sizeof_unsigned_long_long}" = "x8"; then
# Try to keep TARGET_PTR the same across archs so that jit-reader.h file
# content is the same for multilib distributions.
if test "x${ac_cv_sizeof_unsigned_long_long}" = "x8"; then
TARGET_PTR="unsigned long long"
elif test "x${ac_cv_sizeof_unsigned_long}" = "x8"; then
TARGET_PTR="unsigned long"
elif test "x${ac_cv_sizeof_unsigned___int128}" = "x16"; then
TARGET_PTR="unsigned __int128"
else
Expand Down
8 changes: 5 additions & 3 deletions gdb/configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -843,10 +843,12 @@ AC_CHECK_SIZEOF(unsigned long long)
AC_CHECK_SIZEOF(unsigned long)
AC_CHECK_SIZEOF(unsigned __int128)

if test "x${ac_cv_sizeof_unsigned_long}" = "x8"; then
TARGET_PTR="unsigned long"
elif test "x${ac_cv_sizeof_unsigned_long_long}" = "x8"; then
# Try to keep TARGET_PTR the same across archs so that jit-reader.h file
# content is the same for multilib distributions.
if test "x${ac_cv_sizeof_unsigned_long_long}" = "x8"; then
TARGET_PTR="unsigned long long"
elif test "x${ac_cv_sizeof_unsigned_long}" = "x8"; then
TARGET_PTR="unsigned long"
elif test "x${ac_cv_sizeof_unsigned___int128}" = "x16"; then
TARGET_PTR="unsigned __int128"
else
Expand Down

0 comments on commit b2a93bb

Please sign in to comment.