From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28669 invoked by alias); 19 Dec 2001 17:59:14 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 27855 invoked from network); 19 Dec 2001 17:57:56 -0000 Received: from unknown (HELO gash2.peakpeak.com) (207.174.178.17) by sources.redhat.com with SMTP; 19 Dec 2001 17:57:56 -0000 Received: from creche.cygnus.com (ta0206.peakpeak.com [204.144.244.206]) by gash2.peakpeak.com (8.9.3/8.9.3) with ESMTP id KAA21031; Wed, 19 Dec 2001 10:57:31 -0700 Received: (from tromey@localhost) by creche.cygnus.com (8.9.3/8.9.3) id LAA17888; Wed, 19 Dec 2001 11:05:22 -0700 To: law@redhat.com Cc: Andrew Cagney , gdb-patches@sources.redhat.com Subject: Re: Update for AC_PROG_STDC_CC fix References: <21214.1008779331@porcupine.cygnus.com> X-Zippy: Yow! I want my nose in lights! X-Attribution: Tom Reply-To: tromey@redhat.com From: Tom Tromey Date: Wed, 19 Dec 2001 09:59:00 -0000 In-Reply-To: law@redhat.com's message of "Wed, 19 Dec 2001 09:28:51 -0700" Message-ID: <87n10f6q71.fsf@creche.redhat.com> X-Mailer: Gnus v5.7/Emacs 20.5 X-SW-Source: 2001-12/txt/msg00467.txt.bz2 >>>>> "Jeff" == law writes: Jeff> It seems to me like the various Makefiles associated with gdb use CC, Jeff> but I couldn't find the mechanism by which CC was assigned the result Jeff> of AM_PROG_CC_STDC. But apparently by some magic it does happen. It happens at the end of AM_PROG_CC_STDC: case "x$am_cv_prog_cc_stdc" in x|xno) ;; *) CC="$CC $am_cv_prog_cc_stdc" ;; esac Jeff> This in turn begs the question -- if we rename AM_PROG_CC_STDC Jeff> to GDB_PROG_CC_STDC will the value computed by GDB_PROG_CC_STDC Jeff> still be used to initialize CC in the generated Makefile? Yes. You also have to rename the cache variables. It is probably a bit better to just make sure all the directories in gdb use the same AM_PROG_CC_STDC macro -- use the newest one. If you do this then it seems to me that it will be a little easier to pick up future bug fixes. Tom