aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-eh.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-eh.c
parent96d4df8b2e1870c2e21495f4354730ead07dbdbf (diff)
downloadgcc-63ab94b6d5d732161780c68fce775bd23f8e2a99.zip
gcc-63ab94b6d5d732161780c68fce775bd23f8e2a99.tar.gz
gcc-63ab94b6d5d732161780c68fce775bd23f8e2a99.tar.bz2
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-eh.c')
-rw-r--r--gcc/tree-eh.c40
1 files changed, 10 insertions, 30 deletions
diff --git a/gcc/tree-eh.c b/gcc/tree-eh.c
index c1ca468..609bf4a 100644
--- a/gcc/tree-eh.c
+++ b/gcc/tree-eh.c
@@ -2137,9 +2137,7 @@ lower_eh_constructs_1 (struct leh_state *state, gimple_seq *pseq)
lower_eh_constructs_2 (state, &gsi);
}
-namespace {
-
-const pass_data pass_data_lower_eh =
+static const pass_data pass_data_lower_eh =
{
GIMPLE_PASS, /* type */
"eh", /* name */
@@ -2152,7 +2150,7 @@ const pass_data pass_data_lower_eh =
0, /* todo_flags_finish */
};
-class pass_lower_eh : public gimple_opt_pass
+class pass_lower_eh GCC_FINAL : public gimple_opt_pass
{
public:
pass_lower_eh (gcc::context *ctxt)
@@ -2207,8 +2205,6 @@ pass_lower_eh::execute (function *fun)
return 0;
}
-} // anon namespace
-
gimple_opt_pass *
make_pass_lower_eh (gcc::context *ctxt)
{
@@ -3113,9 +3109,7 @@ refactor_eh_r (gimple_seq seq)
}
}
-namespace {
-
-const pass_data pass_data_refactor_eh =
+static const pass_data pass_data_refactor_eh =
{
GIMPLE_PASS, /* type */
"ehopt", /* name */
@@ -3128,7 +3122,7 @@ const pass_data pass_data_refactor_eh =
0, /* todo_flags_finish */
};
-class pass_refactor_eh : public gimple_opt_pass
+class pass_refactor_eh GCC_FINAL : public gimple_opt_pass
{
public:
pass_refactor_eh (gcc::context *ctxt)
@@ -3145,8 +3139,6 @@ public:
}; // class pass_refactor_eh
-} // anon namespace
-
gimple_opt_pass *
make_pass_refactor_eh (gcc::context *ctxt)
{
@@ -3303,9 +3295,7 @@ lower_resx (basic_block bb, gresx *stmt,
return ret;
}
-namespace {
-
-const pass_data pass_data_lower_resx =
+static const pass_data pass_data_lower_resx =
{
GIMPLE_PASS, /* type */
"resx", /* name */
@@ -3318,7 +3308,7 @@ const pass_data pass_data_lower_resx =
0, /* todo_flags_finish */
};
-class pass_lower_resx : public gimple_opt_pass
+class pass_lower_resx GCC_FINAL : public gimple_opt_pass
{
public:
pass_lower_resx (gcc::context *ctxt)
@@ -3360,8 +3350,6 @@ pass_lower_resx::execute (function *fun)
return any_rewritten ? TODO_update_ssa_only_virtuals : 0;
}
-} // anon namespace
-
gimple_opt_pass *
make_pass_lower_resx (gcc::context *ctxt)
{
@@ -3700,9 +3688,7 @@ lower_eh_dispatch (basic_block src, geh_dispatch *stmt)
return redirected;
}
-namespace {
-
-const pass_data pass_data_lower_eh_dispatch =
+static const pass_data pass_data_lower_eh_dispatch =
{
GIMPLE_PASS, /* type */
"ehdisp", /* name */
@@ -3715,7 +3701,7 @@ const pass_data pass_data_lower_eh_dispatch =
0, /* todo_flags_finish */
};
-class pass_lower_eh_dispatch : public gimple_opt_pass
+class pass_lower_eh_dispatch GCC_FINAL : public gimple_opt_pass
{
public:
pass_lower_eh_dispatch (gcc::context *ctxt)
@@ -3762,8 +3748,6 @@ pass_lower_eh_dispatch::execute (function *fun)
return flags;
}
-} // anon namespace
-
gimple_opt_pass *
make_pass_lower_eh_dispatch (gcc::context *ctxt)
{
@@ -4572,9 +4556,7 @@ execute_cleanup_eh_1 (void)
return 0;
}
-namespace {
-
-const pass_data pass_data_cleanup_eh =
+static const pass_data pass_data_cleanup_eh =
{
GIMPLE_PASS, /* type */
"ehcleanup", /* name */
@@ -4587,7 +4569,7 @@ const pass_data pass_data_cleanup_eh =
0, /* todo_flags_finish */
};
-class pass_cleanup_eh : public gimple_opt_pass
+class pass_cleanup_eh GCC_FINAL : public gimple_opt_pass
{
public:
pass_cleanup_eh (gcc::context *ctxt)
@@ -4620,8 +4602,6 @@ pass_cleanup_eh::execute (function *fun)
return ret;
}
-} // anon namespace
-
gimple_opt_pass *
make_pass_cleanup_eh (gcc::context *ctxt)
{