[LLVMdev] llvm-gcc and -march

Eric Christopher echristo at apple.com
Mon Aug 22 14:38:59 PDT 2011


On Aug 22, 2011, at 2:34 PM, Nichols A. Romero wrote:

> Hi,
> 
> I apologize if I am not asking on the right mailing list.
> 
> I am using the llvm-gcc4.2 from MacPorts.
> https://trac.macports.org/browser/trunk/dports/lang/llvm-gcc42/Portfile
> 
> llvm-gcc does not seem to accept the -march flag. This is the error,
> I got:
> 
> cc1: error: unrecognized command line option "-march"
> 
> The port developer asked me to find out if this is a known issue.


[yendi:~] echristo% llvm-gcc -march=nocona foo.c -S
[yendi:~] echristo% 

Seems to work for me with the llvm-gcc installed on my machine. What are you doing?

-eric



More information about the llvm-dev mailing list