[m-rev.] diff: fix datestamp file bug for --target asm

Fergus Henderson fjh at cs.mu.OZ.AU
Fri Jul 27 16:09:04 AEST 2001


On 27-Jul-2001, Simon Taylor <stayl at cs.mu.OZ.AU> wrote:
> On 27-Jul-2001, Fergus Henderson <fjh at cs.mu.OZ.AU> wrote:
> > Estimated hours taken: 0.5
> > Branches: main
> > 
> > compiler/mercury_compile.m:
> > 	Fix a bug in stayl's recent change to add *_date files:
> > 	the option for PIC in the --target asm back-end is `--pic',
> > 	not `--pic-reg'.
> 
> Why do we need two different options for position independent code?

`--pic-reg' affects link compatibility, whereas `--pic' doesn't.
`--pic-reg' is needed when generating executables with `--shared',
whereas `--pic' isn't.

`--pic-reg' can be (and is) used in MCFLAGS/MGNUCFLAGS, whereas `--pic'
can't, because `--pic' changes the name of the generated file, rather
than just changing the generated code.

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