From: "H.J. Lu" <hjl.tools@gmail.com>
To: Uros Bizjak <ubizjak@gmail.com>, GCC Patches <gcc-patches@gcc.gnu.org>
Subject: Re: PATCH [1/n] X32: Add initial -x32 support
Date: Thu, 07 Jul 2011 13:03:00 -0000 [thread overview]
Message-ID: <CAMe9rOqVBH24JJujx-6MSzgCheF7SkLf2zRPDHnaQ7VFTgwH3g@mail.gmail.com> (raw)
In-Reply-To: <CAMe9rOpQ3uqJoT6dq-z9EHi_LDOsfzLNtEQB2Zb_0SB8PW05fQ@mail.gmail.com>
On Wed, Jul 6, 2011 at 9:22 AM, H.J. Lu <hjl.tools@gmail.com> wrote:
> On Wed, Jul 6, 2011 at 8:02 AM, Richard Guenther
> <richard.guenther@gmail.com> wrote:
>> On Wed, Jul 6, 2011 at 4:48 PM, H.J. Lu <hjl.tools@gmail.com> wrote:
>>> Hi Paolo, DJ, Nathanael, Alexandre, Ralf,
>>>
>>> Is the change
>>> .
>>> * configure.ac: Support --enable-x32.
>>> * configure: Regenerated.
>>>
>>> diff --git a/gcc/configure.ac b/gcc/configure.ac
>>> index 5f3641b..bddabeb 100644
>>> --- a/gcc/configure.ac
>>> +++ b/gcc/configure.ac
>>> @@ -611,6 +611,11 @@ AC_ARG_ENABLE(multilib,
>>> [], [enable_multilib=yes])
>>> AC_SUBST(enable_multilib)
>>>
>>> +# With x32 support
>>> +AC_ARG_ENABLE(x32,
>>> +[ --enable-x32 enable x32 library support for multiple ABIs],
>>
>> Looks like a very very generic switch for a global configury ... we already
>> have --with-multilib-list (SH only), why not extend that to also work
>> for x86_64?
>>
>> Richard.
>>
>>> +[], [enable_x32=no])
>>> +
>>> # Enable __cxa_atexit for C++.
>>> AC_ARG_ENABLE(__cxa_atexit,
>>> [AS_HELP_STRING([--enable-__cxa_atexit], [enable __cxa_atexit for C++])],
>>>
>>> OK?
>>>
>>> Thanks.
>>>
>
> Here is the updated patch to use --with-multilib-list=x32.
>
> Paolo, DJ, Nathanael, Alexandre, Ralf, Is the configure.ac change
>
> ---
> * configure.ac: Mention x86-64 for --with-multilib-list.
> * configure: Regenerated.
>
> * doc/install.texi: Document --with-multilib-list=x32.
>
> diff --git a/gcc/configure.ac b/gcc/configure.ac
> index 5f3641b..a73f758 100644
> --- a/gcc/configure.ac
> +++ b/gcc/configure.ac
> @@ -795,7 +795,7 @@ esac],
> [enable_languages=c])
>
> AC_ARG_WITH(multilib-list,
> -[AS_HELP_STRING([--with-multilib-list], [select multilibs (SH only)])],
> +[AS_HELP_STRING([--with-multilib-list], [select multilibs (SH and
> x86-64 only)])],
> :,
> with_multilib_list=default)
>
> diff --git a/gcc/doc/install.texi b/gcc/doc/install.texi
> index 49aac95..a5d266c 100644
> --- a/gcc/doc/install.texi
> +++ b/gcc/doc/install.texi
> @@ -1049,8 +1049,10 @@ sysv, aix.
> @item --with-multilib-list=@var{list}
> @itemx --without-multilib-list
> Specify what multilibs to build.
> -Currently only implemented for sh*-*-*.
> +Currently only implemented for sh*-*-* and x86-64-*-linux*.
>
> +@table @code
> +@item sh*-*-*
> @var{list} is a comma separated list of CPU names. These must be of the
> form @code{sh*} or @code{m*} (in which case they match the compiler option
> for that processor). The list should not contain any endian options -
> @@ -1082,6 +1084,12 @@ only little endian SH4AL:
> --with-multilib-list=sh4al,!mb/m4al
> @end smallexample
>
> +@item x86-64-*-linux*
> +If @var{list} is @code{x32}, x32 run-time library will be enabled. By
> +default, x32 run-time library is disabled.
> +
> +@end table
> +
> @item --with-endian=@var{endians}
> Specify what endians to use.
> Currently only implemented for sh*-*-*.
> ---
>
> OK?
>
> Thanks.
>
> --
> H.J.
> ---
> 2011-07-06 H.J. Lu <hongjiu.lu@intel.com>
>
> * config.gcc: Support --with-multilib-list=x32 for x86 Linux
> targets.
>
> * configure.ac: Mention x86-64 for --with-multilib-list.
> * configure: Regenerated.
>
> * config/i386/gnu-user64.h (SPEC_64): Support x32.
> (SPEC_32): Likewise.
> (ASM_SPEC): Likewise.
> (LINK_SPEC): Likewise.
> (TARGET_THREAD_SSP_OFFSET): Likewise.
> (TARGET_THREAD_SPLIT_STACK_OFFSET): Likewise.
> (SPEC_X32): New.
>
> * config/i386/i386.h (TARGET_X32): New.
> (TARGET_LP64): New.
> (LONG_TYPE_SIZE): Likewise.
> (POINTER_SIZE): Likewise.
> (POINTERS_EXTEND_UNSIGNED): Likewise.
> (OPT_ARCH64): Support x32.
> (OPT_ARCH32): Likewise.
>
> * config/i386/i386.opt (mx32): New.
>
> * config/i386/kfreebsd-gnu64.h (GNU_USER_LINK_EMULATIONX32): New.
> (GLIBC_DYNAMIC_LINKERX32): Likewise.
> * config/i386/linux64.h (GNU_USER_LINK_EMULATIONX32): Likewise.
> (GLIBC_DYNAMIC_LINKERX32): Likewise.
>
> * config/i386/t-linux-x32: New.
>
> * config/linux.h (UCLIBC_DYNAMIC_LINKERX32): New.
> (BIONIC_DYNAMIC_LINKERX32): Likewise.
> (GNU_USER_DYNAMIC_LINKERX32): Likewise.
>
> * doc/install.texi: Document --with-multilib-list=x32.
>
> * doc/invoke.texi: Document -mx32.
>
Hi Uros,
This new version only adds a comment to configure.ac. OK to install?
Thanks.
--
H.J.
next prev parent reply other threads:[~2011-07-07 12:59 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-05 19:55 PATCH [1/n]: " H.J. Lu
2011-06-06 15:47 ` Uros Bizjak
2011-06-07 15:47 ` Joseph S. Myers
2011-06-07 18:54 ` H.J. Lu
2011-06-07 19:19 ` Joseph S. Myers
2011-06-07 15:59 ` Joseph S. Myers
2011-06-07 19:11 ` H.J. Lu
2011-06-07 19:20 ` Joseph S. Myers
2011-06-07 22:02 ` H.J. Lu
2011-06-14 17:52 ` H.J. Lu
2011-07-05 14:42 ` PATCH [1/n] X32: " H.J. Lu
2011-07-05 15:21 ` Uros Bizjak
2011-07-05 17:59 ` H.J. Lu
2011-07-05 18:18 ` Uros Bizjak
2011-07-05 19:09 ` H.J. Lu
2011-07-05 19:09 ` Joseph S. Myers
2011-07-05 20:07 ` Uros Bizjak
2011-07-06 14:50 ` H.J. Lu
2011-07-06 15:03 ` Richard Guenther
2011-07-06 16:40 ` H.J. Lu
2011-07-07 13:03 ` H.J. Lu [this message]
2011-07-07 13:08 ` Uros Bizjak
2011-07-07 13:27 ` Paolo Bonzini
2011-07-07 15:10 ` H.J. Lu
2011-07-07 15:14 ` Uros Bizjak
2011-07-07 15:38 ` Paolo Bonzini
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=CAMe9rOqVBH24JJujx-6MSzgCheF7SkLf2zRPDHnaQ7VFTgwH3g@mail.gmail.com \
--to=hjl.tools@gmail.com \
--cc=gcc-patches@gcc.gnu.org \
--cc=ubizjak@gmail.com \
/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).