This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/30336] New: -mtune=native is wrong when not built with gcc
- From: "hjl at lucon dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 31 Dec 2006 00:15:47 -0000
- Subject: [Bug target/30336] New: -mtune=native is wrong when not built with gcc
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
When gcc isn't built with gcc, we get
if (arch)
{
/* FIXME: i386 is wrong for 64bit compiler. How can we tell if
we are generating 64bit or 32bit code? */
cpu = "i386";
}
else
cpu = "generic";
It is suggested to use size of (void *):
http://gcc.gnu.org/ml/gcc/2006-12/msg00651.html
However, it only checks the pointer size of the compiler which is used to
build
gcc, not the pointer size of the gcc.
--
Summary: -mtune=native is wrong when not built with gcc
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: enhancement
Priority: P3
Component: target
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: hjl at lucon dot org
GCC target triplet: i686-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30336