[m-dev.] diff: add `--pic' option, for GCC back-end
Fergus Henderson
fjh at cs.mu.OZ.AU
Mon Mar 12 03:52:16 AEDT 2001
On 01-Mar-2001, Fergus Henderson <fjh at cs.mu.OZ.AU> wrote:
> Fix a problem where the nightly tests were failing the `--target asm'
> tests, because they were passing `--pic-reg', and that option was
> being used with different semantics for the gcc back-end.
>
> compiler/options.m:
> Add new `--pic' option.
>
> compiler/mlds_to_gcc.m:
> Use `--pic' rather than (ab)using `--pic-reg'.
>
> doc/user_guide.texi:
> Document the new option.
Estimated hours taken: 0.5
Branches: main release
Fix a problem where the nightly tests were failing the `--target asm'
tests, because they were passing `--pic-reg', and that option was
being used with different semantics for the gcc back-end.
scripts/Mmake.rules:
Use `--pic' rather than `--pic-reg'.
(I forgot to commit this with my earlier changes.)
Workspace: /mnt/venus/home/venus/fjh/ws-venus2/mercury
Index: scripts/Mmake.rules
===================================================================
RCS file: /home/mercury1/repository/mercury/scripts/Mmake.rules,v
retrieving revision 1.90
diff -u -d -r1.90 Mmake.rules
--- scripts/Mmake.rules 2001/01/24 13:18:26 1.90
+++ scripts/Mmake.rules 2001/02/28 15:15:20
@@ -175,10 +175,9 @@
$(MCG) $(ALL_GRADEFLAGS) --target-code-only $(ALL_MCGFLAGS) \
$< > $*.err 2>&1
-# XXX we should probably use a new `--pic' option rather than `--pic-reg'
$(ss_subdir)%.pic_s : %.m
$(MCG) $(ALL_GRADEFLAGS) --target-code-only $(ALL_MCGFLAGS) \
- --pic-reg --cflags "$(GCCFLAGS_FOR_PIC)" $< > $*.err 2>&1
+ --pic --cflags "$(GCCFLAGS_FOR_PIC)" $< > $*.err 2>&1
$(os_subdir)%.$O : $(ss_subdir)%.s
$(AS) $< $(OBJFILE_OPT)$@
--
Fergus Henderson <fjh at cs.mu.oz.au> | "I have always known that the pursuit
| of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh> | -- the last words of T. S. Garp.
--------------------------------------------------------------------------
mercury-developers mailing list
Post messages to: mercury-developers at cs.mu.oz.au
Administrative Queries: owner-mercury-developers at cs.mu.oz.au
Subscriptions: mercury-developers-request at cs.mu.oz.au
--------------------------------------------------------------------------
More information about the developers
mailing list