Re: [PATCH] mips: define _MIPS_ARCH_LOONGSON3A for Loongson3

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 25 Aug 2014, Ralf Baechle wrote:

> > >> +cflags-$(CONFIG_CPU_LOONGSON3)  += -D_MIPS_ARCH_LOONGSON3A
> > >
> > > The _MIPS_ARCH_* namespace belongs to GCC.  While it seems current GCC
> > > does not define this symbol _MIPS_ARCH_LOONGSON3A runs into the danger
> > > of causing a conflict when GCC eventually will define the symbol.
> > When this symbol will be defined? With option '-march=loongson3a'?
> 
> Well, not currently (at least not in my gcc 4.9.0) - but it might.  In
> fact, I'm wondering why it doesn't.  Maciej?

 No idea, a _MIPS_ARCH_foo macro gets defined automagically by GCC 
whenever `-march=foo' is in effect (be it implicitly or with the use of a 
command-line option), so there should be one.

 Has support for "loongson3a" been present in 4.9.x (it is in trunk)?  If 
so, then what _MIPS_ARCH_* macro gets defined for `-march=loongson3a'?

  Maciej


[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux