aboutsummaryrefslogtreecommitdiff
path: root/gcc/d/d-lang.cc
diff options
context:
space:
mode:
authorIain Buclaw <ibuclaw@gdcproject.org>2022-04-03 14:40:34 +0200
committerIain Buclaw <ibuclaw@gdcproject.org>2022-04-03 15:16:39 +0200
commit243e649dcbb2262f2ed6116b14a78bfa82900bd2 (patch)
treea3d07733174ada5063179007294f6e4e911d4546 /gcc/d/d-lang.cc
parent0847ad33b908af88bca1e6980d0b977316d05e18 (diff)
downloadgcc-243e649dcbb2262f2ed6116b14a78bfa82900bd2.zip
gcc-243e649dcbb2262f2ed6116b14a78bfa82900bd2.tar.gz
gcc-243e649dcbb2262f2ed6116b14a78bfa82900bd2.tar.bz2
d: Remove Wtemplates warnings from the code generation pass
These have been superceded by the front-end's own internal tracking of instantiations, exposed by `-ftransition=templates'. gcc/d/ChangeLog: * d-lang.cc: Include dmd/template.h. (d_parse_file): Call printTemplateStats when vtemplates is set. * decl.cc (start_function): Remove OPT_Wtemplates warning. * lang.opt (Wtemplates): Remove.
Diffstat (limited to 'gcc/d/d-lang.cc')
-rw-r--r--gcc/d/d-lang.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/d/d-lang.cc b/gcc/d/d-lang.cc
index 4a7aa89..6957162 100644
--- a/gcc/d/d-lang.cc
+++ b/gcc/d/d-lang.cc
@@ -33,6 +33,7 @@ along with GCC; see the file COPYING3. If not see
#include "dmd/module.h"
#include "dmd/mtype.h"
#include "dmd/target.h"
+#include "dmd/template.h"
#include "opts.h"
#include "alias.h"
@@ -1306,6 +1307,9 @@ d_parse_file (void)
}
}
+ if (global.params.vtemplates)
+ printTemplateStats ();
+
/* Generate JSON files. */
if (global.params.doJsonGeneration)
{