Commit Graph

14 Commits

Author SHA1 Message Date
Fergus Henderson
d664d48d8d Always pass --bits-per-word 32, since for some reason
Estimated hours taken: 0.1
	Plus lots of debugging time

scripts/mc.in
	Always pass --bits-per-word 32, since for some reason
	--bits-per-word 64 causes the compiler to generate incorrect
	code for lookup switches.
1996-05-05 18:55:10 +00:00
Fergus Henderson
8cb3e1292c Pass the configured value of --bytes-per-word.
Estimated hours taken: 0.25
	(plus 0.75 debugging)

scripts/mc.in:
	Pass the configured value of --bytes-per-word.
	Also fix a missing line for --bits-per-word.
1996-05-03 00:12:12 +00:00
Thomas Conway
97c09ffc3c Pass the number of bits in a word as a configured parameter
Estimated hours taken: 0.1

scripts/mc.in:
	Pass the number of bits in a word as a configured parameter
	to mercury_compile instead of using the default (32). Ports
	to 16 bit achitectures should now work ;-)
1996-05-02 22:16:20 +00:00
Zoltan Somogyi
27068f8d16 Rename BRANCH_DELAY_SLOT to HAVE_DELAY_SLOT.
Estimated hours taken: 0.2

mc.in:
	Rename BRANCH_DELAY_SLOT to HAVE_DELAY_SLOT.
	Set the default optimization level here, not in options.m.
1996-04-24 01:03:30 +00:00
Zoltan Somogyi
a5ed3f49c4 Transmit the --num-real-r-regs, --num-real-temps and
Estimated hours taken: 0.2

mc.in:
	Transmit the --num-real-r-regs, --num-real-temps and
	--branch-delay-slot options from autoconfiguration to mercury_compile.
1996-04-20 08:40:13 +00:00
Fergus Henderson
de35687da5 Make sure that `mc -c' passes the correct machine- and grade-specific
Estimated hours taken: 2

Make sure that `mc -c' passes the correct machine- and grade-specific
options to the C compiler.

configure.in:
	Set CFLAGS_FOR_REGS and CFLAGS_FOR_GOTOS to any special
	gcc options required for the use of gcc global registers and gcc
	nonlocal gotos respectively.

scripts/mc.in:
	Pass the values of CFLAGS_FOR_REGS and CFLAGS_FOR_GOTOS to
	mercury_compile.

compiler/options.m:
	Add new options for passing CFLAGS_FOR_REGS and CFLAGS_FOR_GOTOS.

compiler/mercury_compile.pp:
	Pass the CFLAGS_FOR_REGS and/or CFLAGS_FOR_GOTOS to the C compiler,
	if appropriate.
1995-12-28 07:24:02 +00:00
Fergus Henderson
e6a1810247 Changed the way configuration parameters are handled so that we
can avoid bootstrapping problems.  Instead of getting configuration
paramters from `conf.m.in', they are now passed via the `mc' script.

Also renamed the `num_real_regs' option to `num_real_r_regs',
to avoid confusion with the NUM_REAL_REGS macro set in runtime/machdeps/*.h
(which has a different meaning).

scripts/mc.in:
	Pass the value of @LOW_TAG_BITS@ (as determined by the configure
	script) to mercury_compile using the --conf-low-tag-bits option,
	and pass the value of @NUM_REAL_R_REGS@ as the default value
	of the --num-real-r-regs option.
1995-11-02 07:12:07 +00:00
Fergus Henderson
8cf86fd1ef Replace all uses of
scripts/*.in:
	Replace all uses of

		... "$@" ...

	with

		case $# in
			0) ... ...
			*) ... "$@" ...
		esac

	since on ULTRIX and OSF, "$@" does the wrong thing if $# is 0.
1995-09-18 07:14:09 +00:00
Fergus Henderson
80de282fd2 Remove the "--", since it is no longer needed.
mc.in, mprof.in:
	Remove the "--", since it is no longer needed.

mcn.in, mcs.in:
	These scripts are no longer necessary - use `mc' instead.
1995-09-08 03:33:53 +00:00
Fergus Henderson
0e10ac2fb1 Use @CC@ from configure rather than `gcc'.
mgnuc.in:
	Use @CC@ from configure rather than `gcc'.
	(We still require gcc, though, since we pass a lot
	of gcc-specific options.)
	Remove the site-specific kludges for finding `gcc'.
	NB: Zoltan, this means that you need to explicitly
	add `-msupersparc' to the MGNUCFLAGS for benchmarking.

	Also, on Irix 5 we need to pass `-mno-abicalls' to
	turn off shared libraries for the grades which use
	gcc non-local gotos.

mc.in:
	Use @CC@ from configure, and pass it use the --cc option.

ml.in:
	For Irix 5, we need to pass `-non_shared' for the grades which use
	gcc non-local gotos, and we also need to export a LIBRARY_PATH
	which points to the nonshared libraries.
1995-07-23 17:10:09 +00:00
Fergus Henderson
1b69277fd6 Use MERCURY_DEFAULT_GRADE, with a default value @DEFAULT_GRADE@
{mc,ml,mgnuc,mmake}.in:
	Use MERCURY_DEFAULT_GRADE, with a default value @DEFAULT_GRADE@
	determined by configure, rather than hard-coding asm_fast.gc as
	the default grade.

mmake.in:
	Update the documentation.
1995-05-29 14:20:57 +00:00
Fergus Henderson
1f6fa981d0 Remove all the uses of MERCURY_DEP_DIR, since it is
mc*.in:
	Remove all the uses of MERCURY_DEP_DIR, since it is
	no longer needed.
1995-05-20 15:28:36 +00:00
Fergus Henderson
60bc8f3ef9 Change "#!/bin/sh" to "#! /bin/sh", since the latter is more portable.
scripts/*.in:
	Change "#!/bin/sh" to "#! /bin/sh", since the latter is more portable.
	Add "# @configure_input@" to the start of each file.
1995-05-19 08:17:46 +00:00
Fergus Henderson
76dbe913e2 Rename *.sh as *.in.
scripts:
	Rename *.sh as *.in.
	The scripts are now made by configure, not by make/mmake in the
	scripts directory.
1995-05-12 21:01:34 +00:00