This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

GCC -mach=native on OS X 10.8


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]