public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Olivier Hainque <hainque@adacore.com>
To: gcc-patches <gcc-patches@gcc.gnu.org>
Cc: Olivier Hainque <hainque@adacore.com>
Subject: [patch] Add an mcmodel=large multilib for aarch64-vxworks
Date: Thu, 29 Sep 2022 15:39:35 +0200	[thread overview]
Message-ID: <293C8CC6-968D-4A82-BDFC-63FE21224D8F@adacore.com> (raw)

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


                 reply	other threads:[~2022-09-29 13:39 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=293C8CC6-968D-4A82-BDFC-63FE21224D8F@adacore.com \
    --to=hainque@adacore.com \
    --cc=gcc-patches@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).