From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Glenn Morris Newsgroups: gmane.emacs.bugs Subject: bug#6538: Removal of C_DEBUG_SWITCH changes CFLAGS Date: Wed, 30 Jun 2010 02:37:14 -0400 Message-ID: <97ocet2fhh.fsf@fencepost.gnu.org> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1277881241 23294 80.91.229.12 (30 Jun 2010 07:00:41 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 30 Jun 2010 07:00:41 +0000 (UTC) Cc: 6538@debbugs.gnu.org To: Dan Nicolaescu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jun 30 09:00:39 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 1OTrHi-0006KF-MQ for geb-bug-gnu-emacs@m.gmane.org; Wed, 30 Jun 2010 09:00:38 +0200 Original-Received: from localhost ([127.0.0.1]:41683 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OTrHi-00081w-6y for geb-bug-gnu-emacs@m.gmane.org; Wed, 30 Jun 2010 03:00:38 -0400 Original-Received: from [140.186.70.92] (port=50553 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OTrGb-0007TX-D0 for bug-gnu-emacs@gnu.org; Wed, 30 Jun 2010 02:59:30 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OTrGY-0004BQ-6i for bug-gnu-emacs@gnu.org; Wed, 30 Jun 2010 02:59:28 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:60267) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OTrGY-0004BM-45 for bug-gnu-emacs@gnu.org; Wed, 30 Jun 2010 02:59:26 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1OTqvq-0003cf-9I; Wed, 30 Jun 2010 02:38:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Glenn Morris Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 30 Jun 2010 06:38:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 6538 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 6538-submit@debbugs.gnu.org id=B6538.127787984313899 (code B ref 6538); Wed, 30 Jun 2010 06:38:02 +0000 Original-Received: (at 6538) by debbugs.gnu.org; 30 Jun 2010 06:37:23 +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 1OTqvC-0003c8-TR for submit@debbugs.gnu.org; Wed, 30 Jun 2010 02:37:23 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OTqvB-0003c3-CB for 6538@debbugs.gnu.org; Wed, 30 Jun 2010 02:37:21 -0400 Original-Received: from rgm by fencepost.gnu.org with local (Exim 4.69) (envelope-from ) id 1OTqv5-00069G-LA; Wed, 30 Jun 2010 02:37:15 -0400 X-Spook: anthrax digicash security IMF Bush Wired top secret X-Ran: F@'kN.]v@:5^5fayrzcp`\+_IDD9Ql<<$)}yx},OV2wSJ\)t0swmEtJ&9zbYos/'hMgR(^ X-Hue: blue X-Attribution: GM In-Reply-To: (Dan Nicolaescu's message of "Wed\, 30 Jun 2010 01\:56\:47 -0400") User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Wed, 30 Jun 2010 02:38: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:38130 Archived-At: Dan Nicolaescu wrote: > C_DEBUG_SWITCH was weird, it used to specify optimization flags too, > that's probably why C_OPTIMIZE_SWITCH is unused. Yes, it was all very weird... > C_DEBUG_SWITCH was just -g -O for all platforms that bothered to set it. What about irix6-5: "-g3 -O -OPT:Olimit=3500". > We get that anyway for non-GCC compilers. I noticed that AC_PROG_CC tests for -g, and adds it to CFLAGS if supported. It also adds -O2 when using gcc. Perhaps this could be used to further simplify configure.in...