r212817 - [PATCH] [x32] Introduce -mx32 flag enforcing x32 mode for other triplets. By Pavel Chupin (@pavel.v.chupin).
joerg at britannica.bec.de
Sat Jul 12 13:32:03 PDT 2014
On Fri, Jul 11, 2014 at 02:28:46PM -0000, Zinovy Nis wrote:
> Author: zinovy.nis
> Date: Fri Jul 11 09:28:45 2014
> New Revision: 212817
> URL: http://llvm.org/viewvc/llvm-project?rev=212817&view=rev
> [PATCH] [x32] Introduce -mx32 flag enforcing x32 mode for other triplets. By Pavel Chupin (@pavel.v.chupin).
> -mx32 flag setup target environment to GNUX32 and can be used for
> other 32/64-bit triplets (i386-unknown-linux, x86_64-unknown-linux) to
> turn on x32 mode. Compatible with GCC -mx32 flag.
I don't think it should allowed on anything but x86_64 targets.
As in: it should be an actual error. While -m16 and -m32 make sense both
for i386-* and x86_64, -m64 doesn't make sense for i386-* and the same
applies to -mx32. It fundamentally requires the 64bit target.
More information about the cfe-commits