diff --git a/Changes b/Changes index d7923afde..5a4d10fb8 100644 --- a/Changes +++ b/Changes @@ -16,6 +16,7 @@ Verilator 4.201 devel * Add EOFNEWLINE warning when missing a newline at EOF. * Changed TIMESCALEMOD from error into a warning. * Verilated signals now use VlWide and VlPacked in place of C arrays. +* Mark --no-relative-cfuncs as scheduled for deprecation. * Fix class unpacked-array compile error (#2774). [Iru Cai] * Fix exceeding command-line ar limit (#2834). [Yinan Xu] * Fix false $dumpfile warning on model save (#2834). [Yinan Xu] diff --git a/bin/verilator b/bin/verilator index f63734ec3..478c06c0f 100755 --- a/bin/verilator +++ b/bin/verilator @@ -5142,6 +5142,11 @@ Verilator currently requires C++11 or newer compilers. Verilator will require C++14 or newer compilers for both compiling Verilator and compiling Verilated models no sooner than January 2022. +=item --no-relative-cfuncs + +The --no-relative-cfuncs option is not be required by any C++11 compliant +compiler and is planned for removal no sooner than July 2021. + =item --inhibit-sim The --inhibit-sim option is planned for removal no sooner than July 2021. diff --git a/src/V3Options.cpp b/src/V3Options.cpp index eb0ff8828..a13340cf6 100644 --- a/src/V3Options.cpp +++ b/src/V3Options.cpp @@ -1088,6 +1088,9 @@ void V3Options::parseOptsList(FileLine* fl, const string& optdir, int argc, char m_quietExit = flag; } else if (onoff(sw, "-relative-cfuncs", flag /*ref*/)) { m_relativeCFuncs = flag; + if (!m_relativeCFuncs) + fl->v3warn(DEPRECATED, + "Deprecated --no-relative-cfuncs, unnecessary with C++11."); } else if (onoff(sw, "-relative-includes", flag /*ref*/)) { m_relativeIncludes = flag; } else if (onoff(sw, "-report-unoptflat", flag /*ref*/)) { diff --git a/test_regress/t/t_inst_tree_inl0_pub1_norelcfuncs.pl b/test_regress/t/t_inst_tree_inl0_pub1_norelcfuncs.pl index 679b4369f..0ec805e0e 100755 --- a/test_regress/t/t_inst_tree_inl0_pub1_norelcfuncs.pl +++ b/test_regress/t/t_inst_tree_inl0_pub1_norelcfuncs.pl @@ -13,7 +13,7 @@ scenarios(simulator => 1); top_filename("t/t_inst_tree.v"); compile( - verilator_flags2 => ['--stats', '--norelative-cfuncs', + verilator_flags2 => ['--stats', '-Wno-DEPRECATED', '--norelative-cfuncs', "$Self->{t_dir}/t_inst_tree_inl0_pub1.vlt", $Self->wno_unopthreads_for_few_cores()] );