GNU bug report logs - #6538
Removal of C_DEBUG_SWITCH changes CFLAGS

Previous Next

Package: emacs;

Reported by: Glenn Morris <rgm <at> gnu.org>

Date: Wed, 30 Jun 2010 03:01:02 UTC

Severity: normal

Done: Dan Nicolaescu <dann <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Dan Nicolaescu <dann <at> gnu.org>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#6538: closed (Removal of C_DEBUG_SWITCH changes CFLAGS)
Date: Wed, 30 Jun 2010 05:57:02 +0000
[Message part 1 (text/plain, inline)]
Your message dated Wed, 30 Jun 2010 01:56:47 -0400
with message-id <yxqsk4583mo.fsf <at> fencepost.gnu.org>
and subject line Re: bug#6538: Removal of C_DEBUG_SWITCH changes CFLAGS
has caused the GNU bug report #6538,
regarding Removal of C_DEBUG_SWITCH changes CFLAGS
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
6538: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=6538
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Glenn Morris <rgm <at> gnu.org>
To: submit <at> debbugs.gnu.org
Subject: Removal of C_DEBUG_SWITCH changes CFLAGS
Date: Tue, 29 Jun 2010 23:00:09 -0400
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.


[Message part 3 (message/rfc822, inline)]
From: Dan Nicolaescu <dann <at> gnu.org>
To: Glenn Morris <rgm <at> gnu.org>
Cc: 6538-done <at> debbugs.gnu.org
Subject: Re: bug#6538: Removal of C_DEBUG_SWITCH changes CFLAGS
Date: Wed, 30 Jun 2010 01:56:47 -0400
Glenn Morris <rgm <at> gnu.org> 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.


This bug report was last modified 15 years and 25 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.