autoconf-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] Simplify _AC_PROG_CC_G


From: Morten Eriksen
Subject: Re: [PATCH] Simplify _AC_PROG_CC_G
Date: 18 Oct 2000 15:29:25 +0200
User-agent: Gnus/5.070098 (Pterodactyl Gnus v0.98) Emacs/20.3

Akim Demaille <address@hidden> writes:

> Fine with me, but feel free to apply the same changes to the other
> languages.

I overlooked that, thanks for spotting it.

The attached patch also fixes the "-g" test for C++. The Fortran test
already behaves the same way as the change I'm proposing for
_AC_PROG_CC_G and _AC_PROG_CXX_G.

BTW, I forgot to mention that the patch also fixes what I believe to
be a bug. See the ChangeLog entry.

Note also that the patch introduces a change of semantics;
_AC_COMPILE_IFELSE tests for the compiler exit code and the presence
of an object file after compilation, while the old code checked only
if the compiler had any output on stderr when compiling with
"-g". This seems rather bogus to me, but if anyone know a good reason
for this please speak up. :^}

> In fact, the plan is to move to a generic implementation of
> _AC_LANG_COMPILER_G, just like we did for _AC_LANG_COMPILER_GNU.

I couldn't see any (trivial) way to accomplish this. Someone with a
bigger brain than me need to step forward on this one, I'm afraid.

Regards,
Morten

Attachment: minus_g_cleanup.diff
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]