mirror of
https://github.com/Mercury-Language/mercury.git
synced 2025-12-08 10:23:03 +00:00
As we discussed, it has fallen into disuse. Its main purpose was to
pave the way for the .net backend and later for the java and csharp grades.
Now that the .net backend is ancient history and the java and csharp grades
are established, that purpose is gone, and for every other purpose,
hlc is better because it is simpler and faster.
compiler/options.m:
Delete the --high-level-data option. It is no longer needed,
bacause the data representation scheme is now a direct function
of the target language.
doc/user_guide.texi:
Delete references to the --high-level-data option.
NEWS:
Mention that --high-level-data is no longer supported.
compiler/compute_grade.m:
Delete references to the hl grade component, and conform
to the deletion of the --high-level-data option.
compiler/compile_target_code.m:
Give some predicates more meaningful names, and conform to the
deletion of the --high-level-data option.
compiler/const_struct.m:
compiler/du_type_layout.m:
compiler/globals.m:
compiler/handle_options.m:
compiler/lco.m:
compiler/mercury_compile_main.m:
compiler/ml_gen_info.m:
compiler/ml_type_gen.m:
compiler/ml_unify_gen_construct.m:
compiler/mlds_to_c_data.m:
compiler/mlds_to_c_func.m:
compiler/mlds_to_c_type.m:
compiler/mlds_to_c_util.m:
Conform to the deletion of the --high-level-data option.
grade_lib/grade_spec.m:
grade_lib/grade_vars.m:
Delete the datarep solver variable, since the data representation
is now a direct function of the target language.
Delete the requirements involving the deleted solver variable.
grade_lib/grade_structure.m:
Delete the datarep component of the representation of MLDS C grades,
since its value would now be fixed.
grade_lib/grade_solver.m:
grade_lib/grade_string.m:
grade_lib/try_all_grade_structs.m:
grade_lib/var_value_names.m:
Conform to the changes above.
grade_lib/Mmakefile:
Link the grade library's test programs statically, like we do
the executables in the other directories.
library/io.m:
library/robdd.m:
library/rtti_implementation.m:
runtime/mercury_conf_param.h:
runtime/mercury_grade.h:
runtime/mercury_hlc_types.h:
Remove references to MR_HIGHLEVEL_DATA, as well as any code
that was guarded by #ifdef MR_HIGHLEVEL_DATA.
scripts/Mmake.vars.in:
scripts/canonical_grade.sh-subr:
scripts/final_grade_options.sh-subr:
scripts/init_grade_options.sh-subr:
scripts/mgnuc.in:
scripts/mgnuc_file_opts.sh-subr:
scripts/mmake.in:
scripts/mmc.in:
scripts/mtc:
scripts/parse_grade_options.sh-subr:
scripts/parse_ml_options.sh-subr.in:
Remove references to --high-level-data options.
In canonical_grade.sh-subr, compute the base grade more directly.
Remove a few left-over references to the assembler backend.
Add or fix vim modelines where relevant.
Fix inconsistent indentation.
Add missing ;;s in case statements.
Switch to using ${var} references instead of just $var.
tests/invalid/Mercury.options:
Make the test_feature_set test case run in grade java instead of hl.gc.
tests/invalid/test_feature_set.err_exp:
Update the expected out for the grade change.
94 lines
2.7 KiB
Bash
94 lines
2.7 KiB
Bash
#---------------------------------------------------------------------------#
|
|
# vim: ts=4 sw=4 expandtab ft=sh
|
|
#---------------------------------------------------------------------------#
|
|
# Copyright (C) 2005 The University of Melbourne.
|
|
# This file may only be copied under the terms of the GNU General
|
|
# Public License - see the file COPYING in the Mercury distribution.
|
|
#---------------------------------------------------------------------------#
|
|
#
|
|
# mgnuc_file_opts.sh-subr:
|
|
#
|
|
# An `sh' subroutine for processing the mgnuc options that can be set from
|
|
# .mgnuc_opts files. It is included twice in mgnuc. Its implementation is
|
|
# bound tightly to the code of mgnuc.in; all the variables it manipulates
|
|
# come from there.
|
|
#
|
|
# At the moment, this includes only options that do not have arguments.
|
|
# This is because processing options with arguments is hard to do without
|
|
# overriding the argument vector, and there is no simple way to preserve
|
|
# the exact structure of the original argument vector *including* any spaces
|
|
# inside individual arguments. There is no real need (at least right now)
|
|
# for putting such options into .mgnuc_opts files.
|
|
#
|
|
#---------------------------------------------------------------------------#
|
|
|
|
-v|--verbose)
|
|
verbose=true
|
|
;;
|
|
-v-|--no-verbose)
|
|
verbose=false
|
|
;;
|
|
|
|
--no-ansi)
|
|
ANSI_OPTS=
|
|
;;
|
|
|
|
--no-check)
|
|
CHECK_OPTS=
|
|
;;
|
|
|
|
--inline-alloc)
|
|
INLINE_ALLOC_OPTS="-DMR_INLINE_ALLOC -DSILENT"
|
|
;;
|
|
--no-inline-alloc)
|
|
INLINE_ALLOC_OPTS=""
|
|
;;
|
|
|
|
-g|--c-debug)
|
|
c_debug=true
|
|
;;
|
|
-g-|--no-c-debug)
|
|
c_debug=false
|
|
;;
|
|
|
|
--c-optimize)
|
|
c_optimize=true
|
|
;;
|
|
--no-c-optimize)
|
|
c_optimize=false
|
|
;;
|
|
|
|
--low-level-debug)
|
|
low_level_debug=true
|
|
;;
|
|
--no-low-level-debug)
|
|
low_level_debug=false
|
|
;;
|
|
|
|
--use-activation-counts)
|
|
use_activation_counts=true
|
|
;;
|
|
--no-use-activation-counts)
|
|
use_activation_counts=false
|
|
;;
|
|
|
|
--preserve-tail-recursion)
|
|
preserve_tail_recursion=true
|
|
;;
|
|
--no-preserve-tail-recursion)
|
|
preserve_tail_recursion=false
|
|
;;
|
|
|
|
--no-mercury-standard-library-directory|--no-mercury-stdlib-dir)
|
|
unset mercury_stdlib_dir
|
|
unset mercury_config_dir
|
|
;;
|
|
|
|
--no-filter-cc)
|
|
do_filter_cc=false
|
|
;;
|
|
|
|
--halt-at-warn-if-possible)
|
|
halt_at_warn_if_possible=true
|
|
;;
|