From unknown Mon Aug 18 14:23:47 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#6538 <6538@debbugs.gnu.org> To: bug#6538 <6538@debbugs.gnu.org> Subject: Status: Removal of C_DEBUG_SWITCH changes CFLAGS Reply-To: bug#6538 <6538@debbugs.gnu.org> Date: Mon, 18 Aug 2025 21:23:47 +0000 retitle 6538 Removal of C_DEBUG_SWITCH changes CFLAGS reassign 6538 emacs submitter 6538 Glenn Morris severity 6538 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Tue Jun 29 23:00:14 2010 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. From debbugs-submit-bounces@debbugs.gnu.org Wed Jun 30 01:56:52 2010 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. From debbugs-submit-bounces@debbugs.gnu.org Wed Jun 30 02:37:23 2010 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 To: Dan Nicolaescu Subject: Re: bug#6538: Removal of C_DEBUG_SWITCH changes CFLAGS 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-Debbugs-No-Ack: yes 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-Debbugs-Envelope-To: 6538 Cc: 6538@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.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 debbugs-submit-bounces@debbugs.gnu.org Wed Jun 30 03:27:56 2010 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 To: Glenn Morris Subject: Re: bug#6538: Removal of C_DEBUG_SWITCH changes CFLAGS 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-Debbugs-Envelope-To: 6538 Cc: 6538@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: > 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... From unknown Mon Aug 18 14:23:47 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 28 Jul 2010 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator