From patchwork Wed Jul 6 16:22:44 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: "H.J. Lu" X-Patchwork-Id: 103503 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id 79080B6F54 for ; Thu, 7 Jul 2011 02:23:07 +1000 (EST) Received: (qmail 20831 invoked by alias); 6 Jul 2011 16:23:05 -0000 Received: (qmail 20818 invoked by uid 22791); 6 Jul 2011 16:23:03 -0000 X-SWARE-Spam-Status: No, hits=-0.9 required=5.0 tests=AWL, BAYES_50, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, TW_AV, TW_CX X-Spam-Check-By: sourceware.org Received: from mail-qw0-f47.google.com (HELO mail-qw0-f47.google.com) (209.85.216.47) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 06 Jul 2011 16:22:45 +0000 Received: by qwh5 with SMTP id 5so35025qwh.20 for ; Wed, 06 Jul 2011 09:22:45 -0700 (PDT) MIME-Version: 1.0 Received: by 10.229.18.77 with SMTP id v13mr6674626qca.56.1309969364465; Wed, 06 Jul 2011 09:22:44 -0700 (PDT) Received: by 10.229.214.83 with HTTP; Wed, 6 Jul 2011 09:22:44 -0700 (PDT) In-Reply-To: References: <20110605195441.GA1225@intel.com> <20110705143920.GA25294@intel.com> Date: Wed, 6 Jul 2011 09:22:44 -0700 Message-ID: Subject: Re: PATCH [1/n] X32: Add initial -x32 support From: "H.J. Lu" To: Richard Guenther Cc: DJ Delorie , Alexandre Oliva , Paolo Bonzini , Ralf Wildenhues , neroden@gcc.gnu.org, gcc-patches@gcc.gnu.org X-IsSubscribed: yes Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org On Wed, Jul 6, 2011 at 8:02 AM, Richard Guenther wrote: > On Wed, Jul 6, 2011 at 4:48 PM, H.J. Lu 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. --- OK? Thanks. 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*-*-*.