------- 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