aboutsummaryrefslogtreecommitdiff
path: root/gcc/ipa-pure-const.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/ipa-pure-const.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/ipa-pure-const.c')
-rw-r--r--gcc/ipa-pure-const.c32
1 files changed, 8 insertions, 24 deletions
diff --git a/gcc/ipa-pure-const.c b/gcc/ipa-pure-const.c
index 8fd8c36..f9d5ef9 100644
--- a/gcc/ipa-pure-const.c
+++ b/gcc/ipa-pure-const.c
@@ -120,9 +120,7 @@ static vec<funct_state> funct_state_vec;
static bool gate_pure_const (void);
-namespace {
-
-const pass_data pass_data_ipa_pure_const =
+static const pass_data pass_data_ipa_pure_const =
{
IPA_PASS, /* type */
"pure-const", /* name */
@@ -135,7 +133,7 @@ const pass_data pass_data_ipa_pure_const =
0, /* todo_flags_finish */
};
-class pass_ipa_pure_const : public ipa_opt_pass_d
+class pass_ipa_pure_const GCC_FINAL : public ipa_opt_pass_d
{
public:
pass_ipa_pure_const(gcc::context *ctxt);
@@ -156,8 +154,6 @@ private:
}; // class pass_ipa_pure_const
-} // anon namespace
-
/* Try to guess if function body will always be visible to compiler
when compiling the call and whether compiler will be able
to propagate the information by itself. */
@@ -1669,9 +1665,7 @@ skip_function_for_local_pure_const (struct cgraph_node *node)
ipa_pure_const. This pass is effective when executed together with
other optimization passes in early optimization pass queue. */
-namespace {
-
-const pass_data pass_data_local_pure_const =
+static const pass_data pass_data_local_pure_const =
{
GIMPLE_PASS, /* type */
"local-pure-const", /* name */
@@ -1684,7 +1678,7 @@ const pass_data pass_data_local_pure_const =
0, /* todo_flags_finish */
};
-class pass_local_pure_const : public gimple_opt_pass
+class pass_local_pure_const GCC_FINAL : public gimple_opt_pass
{
public:
pass_local_pure_const (gcc::context *ctxt)
@@ -1808,8 +1802,6 @@ pass_local_pure_const::execute (function *fun)
return 0;
}
-} // anon namespace
-
gimple_opt_pass *
make_pass_local_pure_const (gcc::context *ctxt)
{
@@ -1818,9 +1810,7 @@ make_pass_local_pure_const (gcc::context *ctxt)
/* Emit noreturn warnings. */
-namespace {
-
-const pass_data pass_data_warn_function_noreturn =
+static const pass_data pass_data_warn_function_noreturn =
{
GIMPLE_PASS, /* type */
"*warn_function_noreturn", /* name */
@@ -1833,7 +1823,7 @@ const pass_data pass_data_warn_function_noreturn =
0, /* todo_flags_finish */
};
-class pass_warn_function_noreturn : public gimple_opt_pass
+class pass_warn_function_noreturn GCC_FINAL : public gimple_opt_pass
{
public:
pass_warn_function_noreturn (gcc::context *ctxt)
@@ -1852,8 +1842,6 @@ public:
}; // class pass_warn_function_noreturn
-} // anon namespace
-
gimple_opt_pass *
make_pass_warn_function_noreturn (gcc::context *ctxt)
{
@@ -1864,9 +1852,7 @@ make_pass_warn_function_noreturn (gcc::context *ctxt)
ipa_pure_const. This pass is effective when executed together with
other optimization passes in early optimization pass queue. */
-namespace {
-
-const pass_data pass_data_nothrow =
+static const pass_data pass_data_nothrow =
{
GIMPLE_PASS, /* type */
"nothrow", /* name */
@@ -1879,7 +1865,7 @@ const pass_data pass_data_nothrow =
0, /* todo_flags_finish */
};
-class pass_nothrow : public gimple_opt_pass
+class pass_nothrow GCC_FINAL : public gimple_opt_pass
{
public:
pass_nothrow (gcc::context *ctxt)
@@ -1945,8 +1931,6 @@ pass_nothrow::execute (function *)
return 0;
}
-} // anon namespace
-
gimple_opt_pass *
make_pass_nothrow (gcc::context *ctxt)
{