summaryrefslogtreecommitdiff
path: root/gcc/tree-tailcall.c
diff options
context:
space:
mode:
authorTrevor Saunders <tbsaunde@tbsaunde.org>2015-08-11 22:39:37 +0000
committerTrevor Saunders <tbsaunde@gcc.gnu.org>2015-08-11 22:39:37 +0000
commit63ab94b6d5d732161780c68fce775bd23f8e2a99 (patch)
treece150cc07d1bbf63f91af92c51be9976c9032f53 /gcc/tree-tailcall.c
parent96d4df8b2e1870c2e21495f4354730ead07dbdbf (diff)
replace several uses of the anon namespace with GCC_FINAL
gcc/ChangeLog: 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org> * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c, graphite.c, init-regs.c, ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c, omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c, tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c, tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c, tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous namespace. From-SVN: r226793
Diffstat (limited to 'gcc/tree-tailcall.c')
-rw-r--r--gcc/tree-tailcall.c16
1 files changed, 4 insertions, 12 deletions
diff --git a/gcc/tree-tailcall.c b/gcc/tree-tailcall.c
index 7b723c2caeb..08b5807ff19 100644
--- a/gcc/tree-tailcall.c
+++ b/gcc/tree-tailcall.c
@@ -1092,9 +1092,7 @@ execute_tail_calls (void)
return tree_optimize_tail_calls_1 (true);
}
-namespace {
-
-const pass_data pass_data_tail_recursion =
+static const pass_data pass_data_tail_recursion =
{
GIMPLE_PASS, /* type */
"tailr", /* name */
@@ -1107,7 +1105,7 @@ const pass_data pass_data_tail_recursion =
0, /* todo_flags_finish */
};
-class pass_tail_recursion : public gimple_opt_pass
+class pass_tail_recursion GCC_FINAL : public gimple_opt_pass
{
public:
pass_tail_recursion (gcc::context *ctxt)
@@ -1124,17 +1122,13 @@ public:
}; // class pass_tail_recursion
-} // anon namespace
-
gimple_opt_pass *
make_pass_tail_recursion (gcc::context *ctxt)
{
return new pass_tail_recursion (ctxt);
}
-namespace {
-
-const pass_data pass_data_tail_calls =
+static const pass_data pass_data_tail_calls =
{
GIMPLE_PASS, /* type */
"tailc", /* name */
@@ -1147,7 +1141,7 @@ const pass_data pass_data_tail_calls =
0, /* todo_flags_finish */
};
-class pass_tail_calls : public gimple_opt_pass
+class pass_tail_calls GCC_FINAL : public gimple_opt_pass
{
public:
pass_tail_calls (gcc::context *ctxt)
@@ -1160,8 +1154,6 @@ public:
}; // class pass_tail_calls
-} // anon namespace
-
gimple_opt_pass *
make_pass_tail_calls (gcc::context *ctxt)
{