From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8904 invoked by alias); 28 Mar 2006 08:20:58 -0000 Received: (qmail 8862 invoked by uid 48); 28 Mar 2006 08:20:54 -0000 Date: Tue, 28 Mar 2006 08:20:00 -0000 Message-ID: <20060328082054.8861.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug target/26885] [4.1/4.2 regression] -m64 -m32 no longer creates 32-bit object In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "jakub at gcc dot gnu dot org" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2006-03/txt/msg02714.txt.bz2 List-Id: ------- Comment #2 from jakub at gcc dot gnu dot org 2006-03-28 08:20 ------- On x86-64 Linux? -m32 -m64 works just fine, for cc1 obviously (-m64 wins) and for gas as well (--32 --64 is passed, the last one wins). The reason why -m64 -m32 doesn't work is that for cc1 -m32 wins and for gas we pass --32 --64 for that switch combination too, which means as is trying to assemble the 32-bit asm as 64-bit assembly. This breaks Linux kernel build (which has -m64 in AFLAGS and then appends -m32 for the few files that need to be built with 32-bit assembler and linked into 32-bit vDSO). -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26885