Skip to content

Commit

Permalink
Darwin, Arm64 : Fix ptrdiff type.
Browse files Browse the repository at this point in the history
This was wrong (the size needs to track the 64-bitness and was failing
to do so.
  • Loading branch information
iains committed Aug 30, 2020
1 parent fdda881 commit 3b4d394
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions gcc/config/aarch64/darwin.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ along with GCC; see the file COPYING3. If not see
#undef TARGET_64BIT
#define TARGET_64BIT 1

#undef PTRDIFF_TYPE
#define PTRDIFF_TYPE "long int"

/* NOTE that arm64_32 is a valid thing and corresponds to darwinpcs
and TARGET_ILP32, but we are not implementing that for now. */
#define TARGET_OS_CPP_BUILTINS() \
Expand Down

0 comments on commit 3b4d394

Please sign in to comment.