This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See crosstool-NG for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: multilib-list


Hello Ray,

On 02/26/14 13:33, Ray Donnelly wrote:
>  AFAIK --with-multilib-list is only supported on intel and sh and in
> GCC 4.9 it's also supported for arm.

Specifically I have been working with the gcc-arm-embedded code from
https://launchpad.net/gcc-arm-embedded (and I've noticed some of the
contributors to that project are also subscribed to this list). I assume
it is this work which will eventually be the gcc-4.9 you mention?

> If you're interested in multilib support, a few of us have been
> contributing to the following patch queue:
>
> https://bitbucket.org/bhundven/crosstool-ng-multilib

Any chance you could point me to some information on how to use a second
remote patch queue with mercurial? I would like to work with these
patches, but I'm rather new to mercurial, never mind its queue add-on.

Why not just have a patch that allows the user to specify the list
themselves?

diff -r 043b9b789b7d config/target.in
--- a/config/target.in  Wed Feb 26 13:53:25 2014 -0500
+++ b/config/target.in  Wed Feb 26 14:45:22 2014 -0500
@@ -77,6 +77,15 @@
       NOTE: The multilib feature in crosstool-NG is not well-tested.
             Use at your own risk, and report success and/or failure.
 
+config MULTILIB_LIST
+    string
+    prompt "Additional multilib architectures to support"
+    depends on MULTILIB
+    default ""
+    help
+      Provide GCC with a comma-separated list of additional
architectures for
+      which to build multilib support.
+
 #--------------------------------------
 config ARCH_SUPPORTS_BOTH_MMU
     bool
diff -r 043b9b789b7d scripts/build/cc/gcc.sh
--- a/scripts/build/cc/gcc.sh   Wed Feb 26 13:53:25 2014 -0500
+++ b/scripts/build/cc/gcc.sh   Wed Feb 26 14:45:22 2014 -0500
@@ -377,6 +377,9 @@
 
     if [ "${CT_MULTILIB}" = "y" ]; then
         extra_config+=("--enable-multilib")
+        if [ -n "${CT_MULTILIB_LIST}" ]; then
+            extra_config+=("--with-multilib-list=${CT_MULTILIB_LIST}")
+        fi
     else
         extra_config+=("--disable-multilib")
     fi


--
For unsubscribe information see http://sourceware.org/lists.html#faq


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]