public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* PATCH: Always pass --32 to assembler on Linux/ia32
@ 2009-10-15 17:50 H.J. Lu
  2009-10-15 17:54 ` Andrew Pinski
  0 siblings, 1 reply; 4+ messages in thread
From: H.J. Lu @ 2009-10-15 17:50 UTC (permalink / raw)
  To: gcc-patches, ubizjak

Hi,

On Linux/ia32, we require binutils 2.13.1 or later, which supports --32
which was added on 2000-12-20.  This patch always passes --32 to assembler
on Linux/ia32 so that one can configure gcc as i686-pc-linux-gnu on
Linux/x86-64 to build/test Linux/ia32 gcc binaries. Tested on Linux/ia32
and Linux/x86-64.  OK for trunk?

Thanks.


H.J.
---
2009-10-15  H.J. Lu  <hongjiu.lu@intel.com>

	* config/i386/linux.h (ASM_SPEC): Add --32.

diff --git a/gcc/config/i386/linux.h b/gcc/config/i386/linux.h
index 9b51496..5e2e013 100644
--- a/gcc/config/i386/linux.h
+++ b/gcc/config/i386/linux.h
@@ -104,7 +104,7 @@ along with GCC; see the file COPYING3.  If not see
 
 #undef  ASM_SPEC
 #define ASM_SPEC \
-  "%{v:-V} %{Qy:} %{!Qn:-Qy} %{n} %{T} %{Ym,*} %{Yd,*} %{Wa,*:%*} \
+  "%{v:-V} %{Qy:} %{!Qn:-Qy} %{n} %{T} %{Ym,*} %{Yd,*} %{Wa,*:%*} --32 \
   %{!mno-sse2avx:%{mavx:-msse2avx}} %{msse2avx:%{!mavx:-msse2avx}}"
 
 #undef  SUBTARGET_EXTRA_SPECS

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: PATCH: Always pass --32 to assembler on Linux/ia32
  2009-10-15 17:50 PATCH: Always pass --32 to assembler on Linux/ia32 H.J. Lu
@ 2009-10-15 17:54 ` Andrew Pinski
  2009-10-15 18:02   ` H.J. Lu
  0 siblings, 1 reply; 4+ messages in thread
From: Andrew Pinski @ 2009-10-15 17:54 UTC (permalink / raw)
  To: H.J. Lu; +Cc: gcc-patches, ubizjak

On Thu, Oct 15, 2009 at 10:41 AM, H.J. Lu <hongjiu.lu@intel.com> wrote:
> Hi,
>
> On Linux/ia32, we require binutils 2.13.1 or later, which supports --32
> which was added on 2000-12-20.  This patch always passes --32 to assembler
> on Linux/ia32 so that one can configure gcc as i686-pc-linux-gnu on
> Linux/x86-64 to build/test Linux/ia32 gcc binaries. Tested on Linux/ia32
> and Linux/x86-64.  OK for trunk?

Does this work for a mutli-arch compiled i686-linux-gnu compiler?

Thanks,
Andrew Pinski

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: PATCH: Always pass --32 to assembler on Linux/ia32
  2009-10-15 17:54 ` Andrew Pinski
@ 2009-10-15 18:02   ` H.J. Lu
  2009-10-15 18:58     ` Uros Bizjak
  0 siblings, 1 reply; 4+ messages in thread
From: H.J. Lu @ 2009-10-15 18:02 UTC (permalink / raw)
  To: Andrew Pinski; +Cc: gcc-patches, ubizjak

On Thu, Oct 15, 2009 at 10:50 AM, Andrew Pinski <pinskia@gmail.com> wrote:
> On Thu, Oct 15, 2009 at 10:41 AM, H.J. Lu <hongjiu.lu@intel.com> wrote:
>> Hi,
>>
>> On Linux/ia32, we require binutils 2.13.1 or later, which supports --32
>> which was added on 2000-12-20.  This patch always passes --32 to assembler
>> on Linux/ia32 so that one can configure gcc as i686-pc-linux-gnu on
>> Linux/x86-64 to build/test Linux/ia32 gcc binaries. Tested on Linux/ia32
>> and Linux/x86-64.  OK for trunk?
>
> Does this work for a mutli-arch compiled i686-linux-gnu compiler?
>

Yes. Such setup includes i386/linux64.h which redefines ASM_SPEC.


-- 
H.J.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: PATCH: Always pass --32 to assembler on Linux/ia32
  2009-10-15 18:02   ` H.J. Lu
@ 2009-10-15 18:58     ` Uros Bizjak
  0 siblings, 0 replies; 4+ messages in thread
From: Uros Bizjak @ 2009-10-15 18:58 UTC (permalink / raw)
  To: H.J. Lu; +Cc: Andrew Pinski, gcc-patches

On 10/15/2009 07:54 PM, H.J. Lu wrote:
> On Thu, Oct 15, 2009 at 10:50 AM, Andrew Pinski<pinskia@gmail.com>  wrote:
>    
>> On Thu, Oct 15, 2009 at 10:41 AM, H.J. Lu<hongjiu.lu@intel.com>  wrote:
>>      
>>> Hi,
>>>
>>> On Linux/ia32, we require binutils 2.13.1 or later, which supports --32
>>> which was added on 2000-12-20. �This patch always passes --32 to assembler
>>> on Linux/ia32 so that one can configure gcc as i686-pc-linux-gnu on
>>> Linux/x86-64 to build/test Linux/ia32 gcc binaries. Tested on Linux/ia32
>>> and Linux/x86-64. �OK for trunk?
>>>        
>> Does this work for a mutli-arch compiled i686-linux-gnu compiler?
>>
>>      
> Yes. Such setup includes i386/linux64.h which redefines ASM_SPEC.
>    

Well, OK then.

Thanks,
Uros.


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-10-15 18:49 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-10-15 17:50 PATCH: Always pass --32 to assembler on Linux/ia32 H.J. Lu
2009-10-15 17:54 ` Andrew Pinski
2009-10-15 18:02   ` H.J. Lu
2009-10-15 18:58     ` Uros Bizjak

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).