[LLVMdev] llvm-gcc and -march
Eric Christopher
echristo at apple.com
Mon Aug 22 14:46:32 PDT 2011
Still nothing here:
[yendi:~] echristo% llvm-gcc -march=nocona foo.c -S -arch x86_64
[yendi:~] echristo%
So, perhaps you could send more information? Or bug the mac ports people.
-eric
On Aug 22, 2011, at 2:44 PM, Nichols A. Romero wrote:
> This comes up when trying to compile Valgrind, here is the full compile line:
>
> /opt/local/bin/llvm-gcc-4.2 -Wbad-function-cast -Wcast-qual
> -Wcast-align -fstrict-aliasing \
> -arch x86_64 -O2 -g -Wall -Wmissing-prototypes -Wshadow
> -Wpointer-arith -Wstrict-prototypes -Wmissing-declarations
> -Wno-format-zero-length -fno-strict-aliasing -mmacosx-version-min=10.5
> -fno-stack-protector \
> -O -S -o auxprogs/genoffsets.s \
> auxprogs/genoffsets.c
>
> On Mon, Aug 22, 2011 at 4:39 PM, Eli Friedman <eli.friedman at gmail.com> wrote:
>> On Mon, Aug 22, 2011 at 2:34 PM, Nichols A. Romero <naromero at gmail.com> 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.
>>
>> llvm-gcc 4.2 should support almost exactly the same command-line
>> options as gcc 4.2, including -march. How exactly are you getting
>> this error?
>>
>> -Eli
>>
More information about the llvm-dev
mailing list