Define TRY_EMPTY_VM_SPACE for riscv64-linux

Message ID mvmh7y6om3c.fsf@suse.de
State New
Headers show
Series
  • Define TRY_EMPTY_VM_SPACE for riscv64-linux
Related show

Commit Message

Andreas Schwab March 29, 2020, 10:03 p.m.
* config/host-linux.c (TRY_EMPTY_VM_SPACE) [__riscv && __LP64__]:
	Define.
---
 gcc/config/host-linux.c | 2 ++
 1 file changed, 2 insertions(+)

-- 
2.26.0


-- 
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."

Comments

Jim Wilson March 30, 2020, 5:53 p.m. | #1
On Sun, Mar 29, 2020 at 3:03 PM Andreas Schwab <schwab@suse.de> wrote:
>         * config/host-linux.c (TRY_EMPTY_VM_SPACE) [__riscv && __LP64__]:

>         Define.


Looks like the same address already used by the aarch64 and ia64
ports, so it seems safe.  OK.

Jim

Patch

diff --git a/gcc/config/host-linux.c b/gcc/config/host-linux.c
index ee1d520ede3..26872544130 100644
--- a/gcc/config/host-linux.c
+++ b/gcc/config/host-linux.c
@@ -96,6 +96,8 @@ 
 # define TRY_EMPTY_VM_SPACE	0x8000000000
 #elif defined(__mips__)
 # define TRY_EMPTY_VM_SPACE	0x60000000
+#elif defined(__riscv) && defined (__LP64__)
+# define TRY_EMPTY_VM_SPACE	0x1000000000
 #else
 # define TRY_EMPTY_VM_SPACE	0
 #endif