From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dan Nicolaescu Newsgroups: gmane.emacs.bugs Subject: bug#6538: Removal of C_DEBUG_SWITCH changes CFLAGS Date: Wed, 30 Jun 2010 01:56:47 -0400 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1277877585 12982 80.91.229.12 (30 Jun 2010 05:59:45 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 30 Jun 2010 05:59:45 +0000 (UTC) Cc: 6538-done@debbugs.gnu.org To: Glenn Morris Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jun 30 07:59:44 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OTqKh-0005IT-6O for geb-bug-gnu-emacs@m.gmane.org; Wed, 30 Jun 2010 07:59:41 +0200 Original-Received: from localhost ([127.0.0.1]:59106 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OTqKe-0002lJ-9c for geb-bug-gnu-emacs@m.gmane.org; Wed, 30 Jun 2010 01:59:36 -0400 Original-Received: from [140.186.70.92] (port=51662 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OTqKU-0002kT-Mw for bug-gnu-emacs@gnu.org; Wed, 30 Jun 2010 01:59:28 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OTqKT-0004Mw-IC for bug-gnu-emacs@gnu.org; Wed, 30 Jun 2010 01:59:26 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:50131) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OTqKT-0004Ms-Cc for bug-gnu-emacs@gnu.org; Wed, 30 Jun 2010 01:59:25 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1OTqIA-0003Lj-JY for bug-gnu-emacs@gnu.org; Wed, 30 Jun 2010 01:57:02 -0400 Resent-From: Dan Nicolaescu Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Wed, 30 Jun 2010 05:57:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 6538 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Mail-Followup-To: 6538@debbugs.gnu.org, dann@gnu.org Original-Received: via spool by 6538-done@debbugs.gnu.org id=D6538.127787741212867 (code D ref 6538); Wed, 30 Jun 2010 05:57:02 +0000 Original-Received: (at 6538-done) by debbugs.gnu.org; 30 Jun 2010 05:56:52 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OTqI0-0003LU-Ih for submit@debbugs.gnu.org; Wed, 30 Jun 2010 01:56:52 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OTqHz-0003LO-49 for 6538-done@debbugs.gnu.org; Wed, 30 Jun 2010 01:56:51 -0400 Original-Received: from dann by fencepost.gnu.org with local (Exim 4.69) (envelope-from ) id 1OTqHv-00059F-NB; Wed, 30 Jun 2010 01:56:47 -0400 In-Reply-To: (Glenn Morris's message of "Tue\, 29 Jun 2010 23\:00\:09 -0400") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Wed, 30 Jun 2010 01:57:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:38128 Archived-At: Glenn Morris writes: > Package: emacs > > Configuring Emacs 23.2 on Solaris 2.10 with a non-GNU cc, one gets > generated Makefiles containing: > > CFLAGS=-g -O > > Configuring the current trunk, one gets > > CFLAGS= > > The cause appears to be the removal of C_DEBUG_SWITCH. > It is possible other platforms are affected, I did not check (likewise > with LIBS_DEBUG). LIBS_DEBUG was just -lg, it can be safely ignored. > > The configure logic (faithfully inherited from cpp) is weird. Eg > C_OPTIMIZE_SWITCH goes unused with non-GNU compilers. Not anymore. C_DEBUG_SWITCH was weird, it used to specify optimization flags too, that's probably why C_OPTIMIZE_SWITCH is unused. C_DEBUG_SWITCH was just -g -O for all platforms that bothered to set it. We get that anyway for non-GCC compilers.