public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [patch] Add an mcmodel=large multilib for aarch64-vxworks
@ 2022-09-29 13:39 Olivier Hainque
  0 siblings, 0 replies; only message in thread
From: Olivier Hainque @ 2022-09-29 13:39 UTC (permalink / raw)
  To: gcc-patches; +Cc: Olivier Hainque

[-- Attachment #1: Type: text/plain, Size: 465 bytes --]

Hello,

This makes good sense in general anyway, and in particular
with forthcoming support for shared shared libraries, which will
work for mrtp alone but not yet for mrtp+mcmodel=large.

We have been using this in gcc-11 based development toolchains
for a while.

Committing to mainline.

Regards,

Olivier

2022-03-20  Olivier Hainque  <hainque@adacore.com>

gcc/
        * config/aarch64/t-aarch64-vxworks: Request multilib
        variants for mcmodel=large.


[-- Attachment #2: 0004-Add-an-mcmodel-large-multilib-for-aarch64-vxworks.patch --]
[-- Type: application/octet-stream, Size: 1111 bytes --]

From eb918f65dabcf6b64a67e8b67abf67886dd9bfda Mon Sep 17 00:00:00 2001
From: Olivier Hainque <hainque@adacore.com>
Date: Sun, 20 Mar 2022 17:39:15 +0000
Subject: [PATCH 04/18] Add an mcmodel=large multilib for aarch64-vxworks

This makes good sense in general anyway, and in particular
since we support shared libs for mrtp alone but not yet for
mrtp+mcmodel=large.

2022-03-20  Olivier Hainque  <hainque@adacore.com>

gcc/
	* config/aarch64/t-aarch64-vxworks: Request multilib
	variants for mcmodel=large.
---
 gcc/config/aarch64/t-aarch64-vxworks | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/gcc/config/aarch64/t-aarch64-vxworks b/gcc/config/aarch64/t-aarch64-vxworks
index f9f6ede5baf..e672bb313ac 100644
--- a/gcc/config/aarch64/t-aarch64-vxworks
+++ b/gcc/config/aarch64/t-aarch64-vxworks
@@ -20,3 +20,8 @@
 
 MULTILIB_OPTIONS += mrtp
 MULTILIB_DIRNAMES += mrtp
+
+# Setup a separate multilib for mcmodel=large, for which
+# we may not have shared lib support unlike with -mrtp alone.
+MULTILIB_OPTIONS += mcmodel=large
+MULTILIB_DIRNAMES += large
-- 
2.25.1


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-09-29 13:39 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-29 13:39 [patch] Add an mcmodel=large multilib for aarch64-vxworks Olivier Hainque

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