* [PATCH] Define TRY_EMPTY_VM_SPACE for riscv64-linux
@ 2020-03-29 22:03 Andreas Schwab
2020-03-30 17:53 ` Jim Wilson
0 siblings, 1 reply; 2+ messages in thread
From: Andreas Schwab @ 2020-03-29 22:03 UTC (permalink / raw)
To: gcc-patches
* config/host-linux.c (TRY_EMPTY_VM_SPACE) [__riscv && __LP64__]:
Define.
---
gcc/config/host-linux.c | 2 ++
1 file changed, 2 insertions(+)
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
--
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."
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] Define TRY_EMPTY_VM_SPACE for riscv64-linux
2020-03-29 22:03 [PATCH] Define TRY_EMPTY_VM_SPACE for riscv64-linux Andreas Schwab
@ 2020-03-30 17:53 ` Jim Wilson
0 siblings, 0 replies; 2+ messages in thread
From: Jim Wilson @ 2020-03-30 17:53 UTC (permalink / raw)
To: Andreas Schwab; +Cc: GCC Patches
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-03-30 17:53 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-29 22:03 [PATCH] Define TRY_EMPTY_VM_SPACE for riscv64-linux Andreas Schwab
2020-03-30 17:53 ` Jim Wilson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).