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