Re: RFC: PATCH: Add -maddress-mode=short|long for x86

2012-03-19 Thread H.J. Lu
On Sun, Mar 18, 2012 at 3:17 PM, Gerald Pfeifer wrote: > On Wed, 14 Mar 2012, H.J. Lu wrote: >>> Apart from the above, at least invoke.texi does not define what an x32 >>> environment is.  Shouldn't that done somewhere (before this terminology >>> is used)? >> I am not sure where to put it.  In an

Re: RFC: PATCH: Add -maddress-mode=short|long for x86

2012-03-18 Thread Gerald Pfeifer
On Wed, 14 Mar 2012, H.J. Lu wrote: >> Apart from the above, at least invoke.texi does not define what an x32 >> environment is.  Shouldn't that done somewhere (before this terminology >> is used)? > I am not sure where to put it. In any case, here is a patch to update > GCC 4.7.0 changes with lin

Re: RFC: PATCH: Add -maddress-mode=short|long for x86

2012-03-14 Thread H.J. Lu
On Wed, Mar 14, 2012 at 2:57 PM, Gerald Pfeifer wrote: > On Wed, 14 Mar 2012, Uros Bizjak wrote: >> I have also added Gerald to CC, to check if everything is OK with >> added documentation. > > Joseph is better with that than I am, but I'll give it a try. :-) > > +@item -maddress-mode=long > +@opi

Re: RFC: PATCH: Add -maddress-mode=short|long for x86

2012-03-14 Thread Gerald Pfeifer
On Wed, 14 Mar 2012, Uros Bizjak wrote: > I have also added Gerald to CC, to check if everything is OK with > added documentation. Joseph is better with that than I am, but I'll give it a try. :-) +@item -maddress-mode=long +@opindex maddress-mode=long +Generate code for long address mode. It is

Re: RFC: PATCH: Add -maddress-mode=short|long for x86

2012-03-14 Thread Joseph S. Myers
On Wed, 14 Mar 2012, Uros Bizjak wrote: > The patch is technically OK for mainline, Joseph - can you please > review option stuff? The option changes look fine to me. -- Joseph S. Myers jos...@codesourcery.com

Re: RFC: PATCH: Add -maddress-mode=short|long for x86

2012-03-14 Thread Uros Bizjak
On Mon, Mar 12, 2012 at 6:48 PM, H.J. Lu wrote: > Trunk can now use SImode or DImode for Pmode with -mx32.  Pmode == SImode > will avoid many conversions from SImode to DImode: > > http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50797 > > It will use 0x67 address size prefix instead.  This patch adds

RFC: PATCH: Add -maddress-mode=short|long for x86

2012-03-12 Thread H.J. Lu
Hi, Trunk can now use SImode or DImode for Pmode with -mx32. Pmode == SImode will avoid many conversions from SImode to DImode: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50797 It will use 0x67 address size prefix instead. This patch adds a new command line option, -maddress-mode=short|long,