Skip to content

Commit

Permalink
Mark --no-relative-cfuncs as scheduled for deprecation.
Browse files Browse the repository at this point in the history
  • Loading branch information
wsnyder committed Mar 17, 2021
1 parent 5da9368 commit 96f9f85
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions Changes
Expand Up @@ -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]
Expand Down
5 changes: 5 additions & 0 deletions bin/verilator
Expand Up @@ -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.
Expand Down
3 changes: 3 additions & 0 deletions src/V3Options.cpp
Expand Up @@ -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*/)) {
Expand Down
2 changes: 1 addition & 1 deletion test_regress/t/t_inst_tree_inl0_pub1_norelcfuncs.pl
Expand Up @@ -13,7 +13,7 @@
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()]
);
Expand Down

0 comments on commit 96f9f85

Please sign in to comment.