[m-rev.] for review: fix foreign_decls in the LLDS grades

Simon Taylor stayl at cs.mu.OZ.AU
Mon Aug 5 20:11:40 AEST 2002


On 05-Aug-2002, Peter Ross <pro at missioncriticalit.com> wrote:
> On Sat, Aug 03, 2002 at 01:59:43AM +1000, Simon Taylor wrote:
> > 
> > On 02-Aug-2002, Peter Ross <pro at missioncriticalit.com> wrote:
> > > This diff bootstraps in the asm_fast.gc grade, is this patch acceptable
> > > for everyone at the moment?
> > 
> > You should also make the C code for all modules depend on all the
> > header files in the current directory when `--intermodule-optimization'
> > is enabled.
> >  
> I think this will lead to cyclic dependencies.
> 
> a.c: a.h b.h c.h
> a.h: a.c
> 
> b.c: a.h b.h c.h
> b.h: b.c
> 
> before we can build a.c we must build b.h->b.c but before we can build
> b.c we must build a.h->a.c.

Sorry, I meant object code, not C code.
 
> If I want to make it all the .c files in the current directory is there
> already a utility predicate which lets me find that information?

The second argument of modules__write_dependency_file should
contain all the required modules.

Simon.
--------------------------------------------------------------------------
mercury-reviews mailing list
post:  mercury-reviews at cs.mu.oz.au
administrative address: owner-mercury-reviews at cs.mu.oz.au
unsubscribe: Address: mercury-reviews-request at cs.mu.oz.au Message: unsubscribe
subscribe:   Address: mercury-reviews-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------



More information about the reviews mailing list