Subject: bug#6538: closed (Re: bug#6538: Removal of C_DEBUG_SWITCH changes CFLAGS)

From: [email-masked] (GNU bug Tracking System)
Date: Wed, 30 Jun 2010 05:57:02 +0000

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 [email-masked].

-- 
6538: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=6538
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#6538: Removal of C_DEBUG_SWITCH changes CFLAGS
From: Dan Nicolaescu <[email-masked]>
To: Glenn Morris <[email-masked]>
Cc: [email-masked]
Date: Wed, 30 Jun 2010 01:56:47 -0400
List-Id: <debbugs-submit.debbugs.gnu.org>

Glenn Morris <[email-masked]> 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.

Subject: Removal of C_DEBUG_SWITCH changes CFLAGS
From: Glenn Morris <[email-masked]>
To: [email-masked]
Date: Tue, 29 Jun 2010 23:00:09 -0400
List-Id: <debbugs-submit.debbugs.gnu.org>

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.