[m-rev.] for review: fix problems with --split-c-files

Fergus Henderson fjh at cs.mu.OZ.AU
Thu Aug 8 14:41:28 AEST 2002


On 08-Aug-2002, Zoltan Somogyi <zs at cs.mu.OZ.AU> wrote:
> Fix a bug that caused duplicate symbol definitions with --split-c-files.
> 
> compiler/ll_pseudo_type_info.m:
> 	Represent type_ctor_infos directly; do not misrepresent them as arity
> 	zero pseudo_type_infos, even if they do have the same memory layout.
> 
> compiler/llds_out.m:
> 	Allow the caller to ask for static declarations even with
> 	--split-c-files.
> 
> compiler/rtti_out.m:
> 	Ask llds_out.m to generate static declarations even with
> 	--split-c-files. The data structures affected by this are typeinfos
> 	and pseudotypeinfos. With --split-c-files, we now generate a copy
> 	of a typeinfo or a pseudotypeinfo in each C file that refers to that
> 	typeinfo or pseudotypeinfo, rather than one per Mercury module.
> 	This will increase the size of the split archive, but only minimally.

Why not just qualify the names of the conflicting symbols with the module name?
Then you would only need one per Mercury module, not one per C file.

-- 
Fergus Henderson <fjh at cs.mu.oz.au>  |  "I have always known that the pursuit
The University of Melbourne         |  of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh>  |     -- the last words of T. S. Garp.
--------------------------------------------------------------------------
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