Re: PATCH [1/n]: Add initial -x32 support

2011-06-14 Thread H.J. Lu
On Sun, Jun 05, 2011 at 12:54:41PM -0700, H.J. Lu wrote: > Hi, > > I'd like to start submitting a series of patches to enable x32: > > https://sites.google.com/site/x32abi/ > > The GCC x32 branch is very stable. There are no unexpected failures in > C, C++, Fortran and Objective C testsuites. S

Re: PATCH [1/n]: Add initial -x32 support

2011-06-07 Thread H.J. Lu
On Tue, Jun 7, 2011 at 12:17 PM, Joseph S. Myers wrote: > On Tue, 7 Jun 2011, H.J. Lu wrote: > >> That is -mx32 takes the same default as -m64. It is the correct >> behavior for -mx32. > > I think it's only right in the case where -m64 is the default, and the > specs for the case where -m32 is the

Re: PATCH [1/n]: Add initial -x32 support

2011-06-07 Thread Joseph S. Myers
On Tue, 7 Jun 2011, H.J. Lu wrote: > That is -mx32 takes the same default as -m64. It is the correct > behavior for -mx32. I think it's only right in the case where -m64 is the default, and the specs for the case where -m32 is the default need changing to handle -mx32 properly. -- Joseph S. M

Re: PATCH [1/n]: Add initial -x32 support

2011-06-07 Thread Joseph S. Myers
On Tue, 7 Jun 2011, H.J. Lu wrote: > I thought about it when I started working on it. But I couldn't find a way > to do it properly. What we have are > > #if TARGET_64BIT_DEFAULT > #define SPEC_32 "m32" > #define SPEC_64 "!m32" > #else > #define SPEC_32 "!m64" > #define SPEC_64 "m64" > #endif >

Re: PATCH [1/n]: Add initial -x32 support

2011-06-07 Thread H.J. Lu
On Tue, Jun 7, 2011 at 8:59 AM, Joseph S. Myers wrote: > An additional comment on the specs: OPTION_DEFAULT_SPECS needs updating > (-mx32 should use the --with-arch-64 etc. settings). > The current x32 branch works like this: [hjl@gnu-6 gcc]$ ./xgcc -B./ -v -O /tmp/x.i -S Reading specs from ./s

Re: PATCH [1/n]: Add initial -x32 support

2011-06-07 Thread H.J. Lu
On Tue, Jun 7, 2011 at 8:47 AM, Joseph S. Myers wrote: > On Sun, 5 Jun 2011, H.J. Lu wrote: > >>       * config.gcc: Support --enable-x32/--enable-ia32 for x86 Linux >>       targets. >> >>       * configure.ac: Support --enable-x32/--enable-ia32. >>       * configure: Regenerated. > > New configu

Re: PATCH [1/n]: Add initial -x32 support

2011-06-07 Thread Joseph S. Myers
An additional comment on the specs: OPTION_DEFAULT_SPECS needs updating (-mx32 should use the --with-arch-64 etc. settings). -- Joseph S. Myers jos...@codesourcery.com

Re: PATCH [1/n]: Add initial -x32 support

2011-06-07 Thread Joseph S. Myers
On Sun, 5 Jun 2011, H.J. Lu wrote: > * config.gcc: Support --enable-x32/--enable-ia32 for x86 Linux > targets. > > * configure.ac: Support --enable-x32/--enable-ia32. > * configure: Regenerated. New configure options need documenting in install.texi. > #undef ASM_SPEC >

Re: PATCH [1/n]: Add initial -x32 support

2011-06-06 Thread Uros Bizjak
On Sun, Jun 5, 2011 at 9:54 PM, H.J. Lu wrote: > I'd like to start submitting a series of patches to enable x32: > > https://sites.google.com/site/x32abi/ > > The GCC x32 branch is very stable. There are no unexpected failures in > C, C++, Fortran and Objective C testsuites.  SPEC CPU 2K/2006 com