[LLVMdev] llvm-gcc and -march

Nichols A. Romero naromero at gmail.com
Mon Aug 22 14:44:18 PDT 2011


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
>



-- 
Nichols A. Romero, Ph.D.
Argonne Leadership Computing Facility
Argonne, IL 60490
(630) 447-9793




More information about the llvm-dev mailing list