This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


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

Re: gcc/f/malloc.h and HP-UX 10.20


On Wed, May 23, 2001 at 10:50:23PM +0200, Toon Moene wrote:
> Albert Chin-A-Young wrote:
> 
> > On Tue, May 22, 2001 at 10:17:07PM +0200, Toon Moene wrote:
> 
> > > Are you using HPUX's make ?  It is "considered harmful", i.e. tries to
> > > force recompilation of stuff that's already perfectly fine.
> 
> > I am using GNU make. Setting CC to "cc -Ae" (enable ANSI mode) works.
> > Setting CC=cc does not (K&R mode).
> 
> Well, then I'm out of ideas.  No part of the f/ directory should be
> compiled by the system's compiler if you're using `make bootstrap' and
> GNU make.

Well, after xgcc is built (stage1), objdir/gcc/Makefile has:
  CC = cc
  HOST_CC=$(CC)

  f/ansify$(build_exeext): f/ansify.c hconfig.h system.h
          $(HOST_CC) $(HOST_CFLAGS) $(HOST_LDFLAGS) $(INCLUDES) \
                $(srcdir)/f/ansify.c -o f/ansify$(build_exeext)

So, I removed *everything* and reran configure. I then took a look at
objdir/gcc/Makefile before a 'make bootstrap'. Same as above. This
comes from gcc/f/Make-lang.in. So, if you depend on $(HOST_CC) to
build f/ansify.c (which uses f/malloc.h), it should expect a K&R C
compiler. Else, change $(HOST_CC) to something else for ansify.

-- 
albert chin (china@thewrittenword.com)


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