diff mbox series

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 | expand

Commit Message

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

Comments

Jim Wilson March 30, 2020, 5:53 p.m. UTC | #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
diff mbox series

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