Received: with ECARTIS (v1.0.0; list linux-mips); Mon, 25 Aug 2014 21:35:20 +0200 (CEST) Received: from localhost.localdomain ([127.0.0.1]:55002 "EHLO localhost.localdomain" rhost-flags-OK-OK-OK-OK) by eddie.linux-mips.org with ESMTP id S27006599AbaHYTfRyzDfh (ORCPT ); Mon, 25 Aug 2014 21:35:17 +0200 Date: Mon, 25 Aug 2014 20:35:17 +0100 (BST) From: "Maciej W. Rozycki" To: Ralf Baechle cc: Chen Jie , Linux MIPS Mailing List , =?GB2312?B?s8K7qrLF?= , =?GB2312?B?zfXI8Q==?= Subject: Re: [PATCH] mips: define _MIPS_ARCH_LOONGSON3A for Loongson3 In-Reply-To: <20140825121240.GG27724@linux-mips.org> Message-ID: References: <1408504488-12319-1-git-send-email-chenj@lemote.com> <1408504488-12319-2-git-send-email-chenj@lemote.com> <20140820105356.GA21497@linux-mips.org> <20140825121240.GG27724@linux-mips.org> User-Agent: Alpine 2.11 (LFD 23 2013-08-11) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Return-Path: X-Envelope-To: <"|/home/ecartis/ecartis -s linux-mips"> (uid 0) X-Orcpt: rfc822;linux-mips@linux-mips.org Original-Recipient: rfc822;linux-mips@linux-mips.org X-archive-position: 42235 X-ecartis-version: Ecartis v1.0.0 Sender: linux-mips-bounce@linux-mips.org Errors-to: linux-mips-bounce@linux-mips.org X-original-sender: macro@linux-mips.org Precedence: bulk List-help: List-unsubscribe: List-software: Ecartis version 1.0.0 List-Id: linux-mips X-List-ID: linux-mips List-subscribe: List-owner: List-post: List-archive: X-list: linux-mips 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