From owner-freebsd-arch@FreeBSD.ORG Fri Jul 26 20:41:57 2013 Return-Path: Delivered-To: freebsd-arch@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 7251772B; Fri, 26 Jul 2013 20:41:57 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from tensor.andric.com (tensor.andric.com [87.251.56.140]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 35BDB2F29; Fri, 26 Jul 2013 20:41:56 +0000 (UTC) Received: from [IPv6:2001:7b8:3a7::49d1:fcb1:811a:f805] (unknown [IPv6:2001:7b8:3a7:0:49d1:fcb1:811a:f805]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id E01E95C5A; Fri, 26 Jul 2013 22:41:48 +0200 (CEST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 6.5 \(1508\)) Subject: Re: amd64: -O2 even with DEBUG From: Dimitry Andric In-Reply-To: <51F221D4.8040308@FreeBSD.org> Date: Fri, 26 Jul 2013 22:41:52 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: <77E59DA2-2110-4FB0-A8E3-0995E98E1DAA@FreeBSD.org> References: <51F221D4.8040308@FreeBSD.org> To: Andriy Gapon X-Mailer: Apple Mail (2.1508) Cc: freebsd-arch@FreeBSD.org X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Jul 2013 20:41:57 -0000 On Jul 26, 2013, at 09:14, Andriy Gapon wrote: > I wonder why amd64 is distinguished to have -O2 in COPTFLAGS even when = DEBUG is > defined. For all other archs it's -O for that case. >=20 > Perhaps, this was discussed / explained in the past, but I would = appreciate it > being said again (or even written as a comment in kern.pre.mk). Yes please, I already suggested this some time ago, here: = http://lists.freebsd.org/pipermail/freebsd-current/2011-December/030631.ht= ml though the first part of the patch I posted (making sure -frename-registers is only used for gcc) is already implemented. The only other part was to make amd64 use ${_MINUS_O} just like the other arches. -Dimitry