From unknown Mon Aug 18 17:55:52 2025 X-Loop: help-debbugs@gnu.org Subject: bug#6538: Removal of C_DEBUG_SWITCH changes CFLAGS 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 03:01:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 6538 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 6538@debbugs.gnu.org X-Debbugs-Original-To: submit@debbugs.gnu.org Received: via spool by submit@debbugs.gnu.org id=B.12778668158612 (code B ref -1); Wed, 30 Jun 2010 03:01:02 +0000 Received: (at submit) by debbugs.gnu.org; 30 Jun 2010 03:00:15 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OTnX4-0002Er-M0 for submit@debbugs.gnu.org; Tue, 29 Jun 2010 23:00:14 -0400 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OTnX2-0002Ek-UF for submit@debbugs.gnu.org; Tue, 29 Jun 2010 23:00:13 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.69) (envelope-from ) id 1OTnWz-0000Hl-Bp; Tue, 29 Jun 2010 23:00:09 -0400 From: Glenn Morris X-Spook: White Water Merlin Gazprom airframe MD5 Bruxelles global X-Ran: *RkAzR@zT$=g#Ita_`:{7O`T=Qmg@h]L^>Hy*w{ImRcxbvfJ=M"TT$ciG.V/h X-Hue: white X-Attribution: GM Date: Tue, 29 Jun 2010 23:00:09 -0400 Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -6.2 (------) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.2 (------) 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). The configure logic (faithfully inherited from cpp) is weird. Eg C_OPTIMIZE_SWITCH goes unused with non-GNU compilers. From unknown Mon Aug 18 17:55:52 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.427 (Entity 5.427) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Glenn Morris Subject: bug#6538: closed (Re: bug#6538: Removal of C_DEBUG_SWITCH changes CFLAGS) Message-ID: References: X-Gnu-PR-Message: they-closed 6538 X-Gnu-PR-Package: emacs Reply-To: 6538@debbugs.gnu.org Date: Wed, 30 Jun 2010 05:57:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1277877422-12876-1" This is a multi-part message in MIME format... ------------=_1277877422-12876-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #6538: Removal of C_DEBUG_SWITCH changes CFLAGS which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 6538@debbugs.gnu.org. --=20 6538: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D6538 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1277877422-12876-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 6538-done) by debbugs.gnu.org; 30 Jun 2010 05:56:52 +0000 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 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 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 To: Glenn Morris Subject: Re: bug#6538: Removal of C_DEBUG_SWITCH changes CFLAGS References: From: Dan Nicolaescu X-Debbugs-No-Ack: yes Date: Wed, 30 Jun 2010 01:56:47 -0400 In-Reply-To: (Glenn Morris's message of "Tue\, 29 Jun 2010 23\:00\:09 -0400") Message-ID: User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -6.5 (------) X-Debbugs-Envelope-To: 6538-done Cc: 6538-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.5 (------) 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. ------------=_1277877422-12876-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 30 Jun 2010 03:00:15 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OTnX4-0002Er-M0 for submit@debbugs.gnu.org; Tue, 29 Jun 2010 23:00:14 -0400 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OTnX2-0002Ek-UF for submit@debbugs.gnu.org; Tue, 29 Jun 2010 23:00:13 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.69) (envelope-from ) id 1OTnWz-0000Hl-Bp; Tue, 29 Jun 2010 23:00:09 -0400 To: submit@debbugs.gnu.org Subject: Removal of C_DEBUG_SWITCH changes CFLAGS From: Glenn Morris X-Spook: White Water Merlin Gazprom airframe MD5 Bruxelles global X-Ran: *RkAzR@zT$=g#Ita_`:{7O`T=Qmg@h]L^>Hy*w{ImRcxbvfJ=M"TT$ciG.V/h X-Hue: white X-Debbugs-No-Ack: yes X-Attribution: GM Date: Tue, 29 Jun 2010 23:00:09 -0400 Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -6.2 (------) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.2 (------) 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). The configure logic (faithfully inherited from cpp) is weird. Eg C_OPTIMIZE_SWITCH goes unused with non-GNU compilers. ------------=_1277877422-12876-1-- From unknown Mon Aug 18 17:55:52 2025 X-Loop: help-debbugs@gnu.org Subject: bug#6538: Removal of C_DEBUG_SWITCH changes CFLAGS 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: To: Dan Nicolaescu Cc: 6538@debbugs.gnu.org Received: via spool by 6538-submit@debbugs.gnu.org id=B6538.127787984313899 (code B ref 6538); Wed, 30 Jun 2010 06:38:02 +0000 Received: (at 6538) by debbugs.gnu.org; 30 Jun 2010 06:37:23 +0000 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 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 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 References: From: Glenn Morris 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 Date: Wed, 30 Jun 2010 02:37:14 -0400 In-Reply-To: (Dan Nicolaescu's message of "Wed\, 30 Jun 2010 01\:56\:47 -0400") Message-ID: <97ocet2fhh.fsf@fencepost.gnu.org> User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -6.2 (------) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.2 (------) 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... From unknown Mon Aug 18 17:55:52 2025 X-Loop: help-debbugs@gnu.org Subject: bug#6538: Removal of C_DEBUG_SWITCH changes CFLAGS Resent-From: Dan Nicolaescu 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 07:28: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: To: Glenn Morris Cc: 6538@debbugs.gnu.org Received: via spool by 6538-submit@debbugs.gnu.org id=B6538.127788287615170 (code B ref 6538); Wed, 30 Jun 2010 07:28:02 +0000 Received: (at 6538) by debbugs.gnu.org; 30 Jun 2010 07:27:56 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OTri8-0003wd-Kk for submit@debbugs.gnu.org; Wed, 30 Jun 2010 03:27:56 -0400 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OTri7-0003wX-4m for 6538@debbugs.gnu.org; Wed, 30 Jun 2010 03:27:55 -0400 Received: from dann by fencepost.gnu.org with local (Exim 4.69) (envelope-from ) id 1OTri3-0007Ld-Be; Wed, 30 Jun 2010 03:27:51 -0400 References: <97ocet2fhh.fsf@fencepost.gnu.org> From: Dan Nicolaescu Date: Wed, 30 Jun 2010 03:27:51 -0400 In-Reply-To: <97ocet2fhh.fsf@fencepost.gnu.org> (Glenn Morris's message of "Wed\, 30 Jun 2010 02\:37\:14 -0400") Message-ID: User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -6.5 (------) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.5 (------) Glenn Morris writes: > Dan Nicolaescu wrote: > >> C_DEBUG_SWITCH was just -g -O for all platforms that bothered to set it. > > What about irix6-5: "-g3 -O -OPT:Olimit=3500". IMO it's not worth the complication. >> 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...