This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/26885] [4.1/4.2 regression] -m64 -m32 no longer creates 32-bit object
- From: "jakub at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 28 Mar 2006 08:20:54 -0000
- Subject: [Bug target/26885] [4.1/4.2 regression] -m64 -m32 no longer creates 32-bit object
- References: <bug-26885-87@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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