[m-rev.] diff: fix hlc header file dependencies
Simon Taylor
stayl at cs.mu.OZ.AU
Wed Aug 8 03:58:17 AEST 2001
On 08-Aug-2001, Fergus Henderson <fjh at cs.mu.OZ.AU> wrote:
> On 08-Aug-2001, Simon Taylor <stayl at cs.mu.OZ.AU> wrote:
> >
> > compiler/modules.m:
> > Fix another bug in the `.c_date' file change.
> > The `.h' file for high-level C code grades should depend
> > on the `.c' file for the module, not the `.c_date' file.
>
> Why?
>
> (No doubt your change is correct, but I'd like to understand it better.)
I'm not sure why the old rule caused compilation errors
(the compiler was attempting to create the `.o' file for a module
before all of the `.h' files for imported modules had been created),
Even if it hadn't caused errors, it would cause unnecessary
C compilations.
By the way, do we need to add a datestamp file for the `.h' files
with high-level C code to avoid unnecessarily recreating the `.o'
files for importing moules when a module is recompiled but the
header file is unchanged?
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