This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
PATCH: Always pass --32 to assembler on Linux/ia32
- From: "H.J. Lu" <hongjiu dot lu at intel dot com>
- To: gcc-patches at gcc dot gnu dot org, ubizjak at gmail dot com
- Date: Thu, 15 Oct 2009 10:41:45 -0700
- Subject: PATCH: Always pass --32 to assembler on Linux/ia32
- Reply-to: "H.J. Lu" <hjl dot tools at gmail dot com>
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