Estimated hours taken: 2
Fix two bugs in intermodule optimization reported by Warwick Harvey.
compiler/intermod.m:
Don't read `.opt' files for nested modules. The compiler
currently doesn't read in the `.int0' files for parent modules
of modules for which `.opt' files are read, resulting in
undefined symbol errors.
Export predicate `update_error_status' for use by trans_opt.m.
compiler/trans_opt.m:
Use intermod__update_error_status to check whether an
error should be reported if a `.trans_opt' file is not found.
This is difficult to write a test case for because it would
be spread across multiple directories.
compiler/options.m:
doc/user_guide.texi:
Add option --warn-missing-trans-opt-files.
compiler/handle_options:
--check-termination implies --warn-missing-trans-opt-files.
tests/valid/Mmakefile:
tests/valid/intermod_nested_module.m:
tests/valid/intermod_nested_module2.m:
Test case.