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

Peter Ross pro at missioncriticalit.com
Mon Aug 5 19:49:33 AEST 2002


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.

What I was thinking was to make each .o files depend on all the .c
files of the imported modules, ensuring that the .o file is not build as
to such time all the .c files and the corresponding .h files are built.

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?

Pete
--------------------------------------------------------------------------
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