From owner-freebsd-toolchain@FreeBSD.ORG Mon Oct 15 16:32:50 2012 Return-Path: Delivered-To: toolchain@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id B5A4113C; Mon, 15 Oct 2012 16:32:50 +0000 (UTC) (envelope-from gerald@pfeifer.com) Received: from ainaz.pair.com (ainaz.pair.com [209.68.2.66]) by mx1.freebsd.org (Postfix) with ESMTP id 8E7398FC18; Mon, 15 Oct 2012 16:32:50 +0000 (UTC) Received: from [192.168.20.61] (unknown [78.7.232.139]) by ainaz.pair.com (Postfix) with ESMTPSA id 0AA333F40F; Mon, 15 Oct 2012 12:32:39 -0400 (EDT) Date: Mon, 15 Oct 2012 18:32:32 +0200 (CEST) From: Gerald Pfeifer To: Andriy Gapon , Brooks Davis Subject: Re: gcc46 --version incompatible with bsd.compiler.mk In-Reply-To: <20121015152755.GC10224@lor.one-eyed-alien.net> Message-ID: References: <5078102C.3070503@FreeBSD.org> <20121015152755.GC10224@lor.one-eyed-alien.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: toolchain@FreeBSD.org, Gerald Pfeifer X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Oct 2012 16:32:50 -0000 On Fri, 12 Oct 2012, Andriy Gapon wrote: > $ gcc46 --version > gcc46 (FreeBSD Ports Collection) 4.6.3 > > I think that the above should have just "gcc" instead of "gcc46". The > version is reported separately from the compiler name. I dug into this, and from what I can tell this is basically printing argv[0], that is, for the C++ frontend it'll say g++46. (This is also consistent with GCC as the overall project being all caps since 1999.) On Mon, 15 Oct 2012, Brooks Davis wrote: > Alternatively I could alter bsd.compiler.mk to accept gcc[1-9][0-9] as > gcc. You could also set COMPILER_TYPE to override the check entirely. That would be preferrable, I'd say. Thanks! Gerald