summaryrefslogtreecommitdiff
path: root/gcc/tree-tailcall.c
diff options
context:
space:
mode:
authorTrevor Saunders <tbsaunde@tbsaunde.org>2015-08-12 20:09:33 +0000
committerTrevor Saunders <tbsaunde@gcc.gnu.org>2015-08-12 20:09:33 +0000
commit17795822b27b7b5381525b1d7c98ca181be9bc80 (patch)
tree0bb3e5e55fd46a2be97eff3a0c7917d317863f13 /gcc/tree-tailcall.c
parentbd07e167b0782b004cd270ed586f245621b1dce0 (diff)
Revert "replace several uses of the anon namespace with GCC_FINAL"
This reverts commit daa5a8a3cf9b04cd9af5544c61e12e6dca14f870. From-SVN: r226834
Diffstat (limited to 'gcc/tree-tailcall.c')
-rw-r--r--gcc/tree-tailcall.c16
1 files changed, 12 insertions, 4 deletions
diff --git a/gcc/tree-tailcall.c b/gcc/tree-tailcall.c
index 08b5807ff19..7b723c2caeb 100644
--- a/gcc/tree-tailcall.c
+++ b/gcc/tree-tailcall.c
@@ -1092,7 +1092,9 @@ execute_tail_calls (void)
return tree_optimize_tail_calls_1 (true);
}
-static const pass_data pass_data_tail_recursion =
+namespace {
+
+const pass_data pass_data_tail_recursion =
{
GIMPLE_PASS, /* type */
"tailr", /* name */
@@ -1105,7 +1107,7 @@ static const pass_data pass_data_tail_recursion =
0, /* todo_flags_finish */
};
-class pass_tail_recursion GCC_FINAL : public gimple_opt_pass
+class pass_tail_recursion : public gimple_opt_pass
{
public:
pass_tail_recursion (gcc::context *ctxt)
@@ -1122,13 +1124,17 @@ public:
}; // class pass_tail_recursion
+} // anon namespace
+
gimple_opt_pass *
make_pass_tail_recursion (gcc::context *ctxt)
{
return new pass_tail_recursion (ctxt);
}
-static const pass_data pass_data_tail_calls =
+namespace {
+
+const pass_data pass_data_tail_calls =
{
GIMPLE_PASS, /* type */
"tailc", /* name */
@@ -1141,7 +1147,7 @@ static const pass_data pass_data_tail_calls =
0, /* todo_flags_finish */
};
-class pass_tail_calls GCC_FINAL : public gimple_opt_pass
+class pass_tail_calls : public gimple_opt_pass
{
public:
pass_tail_calls (gcc::context *ctxt)
@@ -1154,6 +1160,8 @@ public:
}; // class pass_tail_calls
+} // anon namespace
+
gimple_opt_pass *
make_pass_tail_calls (gcc::context *ctxt)
{