This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Update for AC_PROG_STDC_CC fix


>>>>> "Jeff" == law  <law@redhat.com> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]