diff mbox

boehm-gc: add supprt for aarch64 ILP32

Message ID mvmmvpzhk9j.fsf@hawking.suse.de
State New
Headers show

Commit Message

Andreas Schwab March 15, 2016, 2:46 p.m. UTC
* include/private/gcconfig.h [AARCH64] (ALIGNMENT, CPP_WORDSZ):
	Define for __ILP32__.
---
 boehm-gc/include/private/gcconfig.h | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

Comments

James Greenhalgh March 16, 2016, 10:50 a.m. UTC | #1
On Tue, Mar 15, 2016 at 03:46:00PM +0100, Andreas Schwab wrote:
> 	* include/private/gcconfig.h [AARCH64] (ALIGNMENT, CPP_WORDSZ):
> 	Define for __ILP32__.

OK.

Thanks,
James

> ---
>  boehm-gc/include/private/gcconfig.h | 9 +++++++--
>  1 file changed, 7 insertions(+), 2 deletions(-)
> 
> diff --git a/boehm-gc/include/private/gcconfig.h b/boehm-gc/include/private/gcconfig.h
> index 7e081d9..aa81f15 100644
> --- a/boehm-gc/include/private/gcconfig.h
> +++ b/boehm-gc/include/private/gcconfig.h
> @@ -1854,9 +1854,14 @@
>  # endif
>  
>  # ifdef AARCH64
> -#   define CPP_WORDSZ 64
> +#   ifdef __ILP32__
> +#     define ALIGNMENT 4
> +#     define CPP_WORDSZ 32
> +#   else
> +#     define ALIGNMENT 8
> +#     define CPP_WORDSZ 64
> +#   endif
>  #   define MACH_TYPE "AARCH64"
> -#   define ALIGNMENT 8
>  #   ifndef HBLKSIZE
>  #     define HBLKSIZE 4096
>  #   endif
> -- 
> 2.7.3
> 
> -- 
> Andreas Schwab, SUSE Labs, schwab@suse.de
> GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
> "And now for something completely different."
>
Jeff Law April 27, 2016, 4:14 a.m. UTC | #2
On 03/15/2016 08:46 AM, Andreas Schwab wrote:
> 	* include/private/gcconfig.h [AARCH64] (ALIGNMENT, CPP_WORDSZ):
> 	Define for __ILP32__.
> ---
>  boehm-gc/include/private/gcconfig.h | 9 +++++++--
>  1 file changed, 7 insertions(+), 2 deletions(-)
Similarly, this should be going to upstream Boehm-GC.

jeff
diff mbox

Patch

diff --git a/boehm-gc/include/private/gcconfig.h b/boehm-gc/include/private/gcconfig.h
index 7e081d9..aa81f15 100644
--- a/boehm-gc/include/private/gcconfig.h
+++ b/boehm-gc/include/private/gcconfig.h
@@ -1854,9 +1854,14 @@ 
 # endif
 
 # ifdef AARCH64
-#   define CPP_WORDSZ 64
+#   ifdef __ILP32__
+#     define ALIGNMENT 4
+#     define CPP_WORDSZ 32
+#   else
+#     define ALIGNMENT 8
+#     define CPP_WORDSZ 64
+#   endif
 #   define MACH_TYPE "AARCH64"
-#   define ALIGNMENT 8
 #   ifndef HBLKSIZE
 #     define HBLKSIZE 4096
 #   endif