Files
mercury/library/LIB_FLAGS.in
Zoltan Somogyi 07ffbce8e7 Implement --warn-sdtlib-shadowing.
compiler/mercury_compile_main.m:
    I added that option a week or so ago, but at that time, it did nothing.
    This diff implements the warning.

library/LIB_FLAGS.in:
    Disable the warning for the modules in the library directory.

configure.ac:
    Require the installed compiler to recognize the option, since without this,
    library/LIBFLAGS won't work.

tests/warnings/profiling_builtin.{m,exp}:
tests/warnings/time.{m,exp}:
tests/warnings/time.subtime.m:
    Two test cases for the warning. One, time, shadows the name of
    a documented library module, the other, profiling_builtin,
    shadows the name an undocumented library module.

    The purpose of time.subtime is to test the message when the module name
    *contains* a stdlib module name, but is not *identical* to it.

tests/warnings/Mmakefile:
    Do *not* turn on the new test cases, but do document why we do not do so.
2022-01-08 04:41:55 +11:00

42 lines
1.0 KiB
Plaintext

@BOOTSTRAP_MC_ARGS@
--optimize-constructor-last-call
--profile-optimized
--no-infer-all
--warn-known-bad-format-calls
--warn-unknown-format-calls
--warn-non-contiguous-clauses
--warn-non-contiguous-foreign-procs
--warn-inconsistent-pred-order-clauses
--warn-unused-imports
--warn-insts-with-functors-without-type
--warn-suspicious-foreign-code
--warn-potentially-ambiguous-pragma
--halt-at-warn
--no-halt-at-warn-make-int
--no-halt-at-warn-make-opt
--no-warn-stdlib-shadowing
--warn-dead-predicates
--no-warn-inferred-erroneous
--no-mercury-stdlib-dir
--no-detect-libgrades
--strict-sequential
--generate-mmc-deps
--no-shlib-linker-use-install-name
--trace minimum
--force-disable-ssdebug
--no-libgrade
--c-include-directory ../boehm_gc
--c-include-directory ../boehm_gc/include
--c-include-directory ../runtime
--c-include-directory ../robdd
--csharp-flag -keyfile:../mercury.snk
@CSHARP_DELAYSIGN_FLAG@
-L../boehm_gc
-L../runtime
-L../library
-L../trace
-L../mdbcomp
-L../browser
--no-java-classpath
--config-file ../scripts/Mercury.config.bootstrap