[LLVMdev] MIPS & GP register

Carl Norum carl at lytro.com
Fri Aug 17 13:26:27 PDT 2012




On Aug 17, 2012, at 10:03 AM, Carl Norum wrote:
> 
> On Aug 16, 2012, at 10:58 AM, Eli Friedman wrote:
>> That's weird... you're probably triggering some sort of bad case in
>> the driver logic which tries to call gcc to assemble and link on
>> targets where we don't know what to do.  That logic is generally a bit
>> shaky to begin with.
> 
> It sounds like that means "time to file a bug". =)  Which product should I file under?


I don't think it's a bug, having looked at it some more.  The problem is that our gcc is called "mips-sde-elf-gcc", and clang wants it to be "mipsel-sde-elf-gcc" to match the -ccc-host-triple flag we need to pass.  Adding a "-ccc-gcc-name mips-sde-elf-gcc" flag fixes it.

-- Carl





More information about the llvm-dev mailing list