From patchwork Wed Apr 24 18:37:55 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "H.J. Lu" X-Patchwork-Id: 239296 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "localhost", Issuer "www.qmailtoaster.com" (not verified)) by ozlabs.org (Postfix) with ESMTPS id B383B2C00FF for ; Thu, 25 Apr 2013 05:01:19 +1000 (EST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:date :from:to:cc:subject:message-id:reply-to:mime-version :content-type; q=dns; s=default; b=QUxCNZl4/+8XsQrePvK/p7XyredEt XSRHnW05TNV2V6RNWg4HgFZZgnQuaHGLxPAz1ZwaKCQh/c1RwJ4EUG3XZodOA+15 HxDVpZLZvQhIhC4qBheLSuntROzyuYr/A+iwGOte44cLXK608YjAZ7ANOqO4DPmy c2q03b/O8wKOD8= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:date :from:to:cc:subject:message-id:reply-to:mime-version :content-type; s=default; bh=kEUCpEYcGMTrS4e9fsYKcvNrcU0=; b=aGe Jjtcwf9E0LRgHyJYQf7vPdXnZse3y6EB2OxAngxugYz4EOzNhSK4zfkJOGQmIYAa TaOf9SDoy06XCVxcPDxQy2do16hoYFuCnPs9bPw3LQo+Ria7pMC/HCSGpfw/Faob 8pdeMiT8RZbXEAIKksmctC+CN190Wm8kddL65H+E= Received: (qmail 21129 invoked by alias); 24 Apr 2013 19:01:11 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 21113 invoked by uid 89); 24 Apr 2013 19:01:11 -0000 X-Spam-SWARE-Status: No, score=-4.6 required=5.0 tests=AWL, BAYES_00, KHOP_RCVD_UNTRUST, NO_DNS_FOR_FROM, RCVD_IN_HOSTKARMA_W, RCVD_IN_HOSTKARMA_WL, RP_MATCHES_RCVD autolearn=ham version=3.3.1 Received: from mga09.intel.com (HELO mga09.intel.com) (134.134.136.24) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Wed, 24 Apr 2013 19:01:10 +0000 Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga102.jf.intel.com with ESMTP; 24 Apr 2013 11:58:52 -0700 X-ExtLoop1: 1 Received: from gnu-6.sc.intel.com ([10.3.194.135]) by orsmga002.jf.intel.com with ESMTP; 24 Apr 2013 12:00:40 -0700 Received: by gnu-6.sc.intel.com (Postfix, from userid 500) id 4E697C0700; Wed, 24 Apr 2013 11:37:55 -0700 (PDT) Date: Wed, 24 Apr 2013 11:37:55 -0700 From: "H.J. Lu" To: gcc-patches@gcc.gnu.org Cc: Uros Bizjak Subject: PATCH: Add -mx32 to x86-64 ASM_SPEC Message-ID: <20130424183754.GA13973@intel.com> Reply-To: "H.J. Lu" MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) When GCC is configured for x86_64-elf for embedded target, --x32 isn't passed to assembler for "gcc -mx32". This patch adds -mx32 support to GCC assembler driver. OK for trunk? Thanks. H.J. --- 2013-04-24 H.J. Lu * config/i386/x86-64.h (ASM_SPEC): Support -mx32. diff --git a/gcc/config/i386/x86-64.h b/gcc/config/i386/x86-64.h index c103c58..3363439 100644 --- a/gcc/config/i386/x86-64.h +++ b/gcc/config/i386/x86-64.h @@ -49,7 +49,7 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see #define WCHAR_TYPE_SIZE 32 #undef ASM_SPEC -#define ASM_SPEC "%{m32:--32} %{m64:--64}" +#define ASM_SPEC "%{m32:--32} %{m64:--64} %{mx32:--x32}" #undef ASM_OUTPUT_ALIGNED_BSS #define ASM_OUTPUT_ALIGNED_BSS(FILE, DECL, NAME, SIZE, ALIGN) \