This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
GCC -mach=native on OS X 10.8
- From: Vera Loeser <vera dot loeser at rwth-aachen dot de>
- To: gcc-patches at gcc dot gnu dot org
- Date: Thu, 28 Nov 2013 14:15:32 +0100
- Subject: GCC -mach=native on OS X 10.8
- Authentication-results: sourceware.org; auth=none
Dear all,
I use the GCC 4.8 from Macports and I'd like to optimize my code by using the flag -march=native. For that I have to use the assembler of clang, because the GNU assembler is too old and cannot use the AVX extensions. By setting the flags "-Wa,-q" the GCC should work. But with optimizing loops there are some problems:
/var/folders/zz/q_423dms0vqcgp5khshwwrwh000142/T//cchZfZOX.s:232771:2:
error: ambiguous instructions require an explicit suffix (could be
'fisttps', or 'fisttpl')
fisttp 62(%rsp)
I think the GCC generates as code, which is too imprecise for the clang compiler.
Is there a way to get more precise code to use the -march=native flag?
Best,
Vera