public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: "H.J. Lu" <hongjiu.lu@intel.com>
To: gcc-patches@gcc.gnu.org, ubizjak@gmail.com
Subject: PATCH: Always pass --32 to assembler on Linux/ia32
Date: Thu, 15 Oct 2009 17:50:00 -0000	[thread overview]
Message-ID: <20091015174145.GA28182@lucon.org> (raw)

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

             reply	other threads:[~2009-10-15 17:41 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-15 17:50 H.J. Lu [this message]
2009-10-15 17:54 ` Andrew Pinski
2009-10-15 18:02   ` H.J. Lu
2009-10-15 18:58     ` Uros Bizjak

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20091015174145.GA28182@lucon.org \
    --to=hongjiu.lu@intel.com \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=hjl.tools@gmail.com \
    --cc=ubizjak@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).