aboutsummaryrefslogtreecommitdiff
path: root/gcc/ipa.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.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.c')
-rw-r--r--gcc/ipa.c24
1 files changed, 6 insertions, 18 deletions
diff --git a/gcc/ipa.c b/gcc/ipa.c
index 75e367f..0fa93c3 100644
--- a/gcc/ipa.c
+++ b/gcc/ipa.c
@@ -832,9 +832,7 @@ ipa_discover_readonly_nonaddressable_vars (void)
/* Free inline summary. */
-namespace {
-
-const pass_data pass_data_ipa_free_inline_summary =
+static const pass_data pass_data_ipa_free_inline_summary =
{
SIMPLE_IPA_PASS, /* type */
"free-inline-summary", /* name */
@@ -850,7 +848,7 @@ const pass_data pass_data_ipa_free_inline_summary =
( TODO_remove_functions | TODO_dump_symtab ), /* todo_flags_finish */
};
-class pass_ipa_free_inline_summary : public simple_ipa_opt_pass
+class pass_ipa_free_inline_summary GCC_FINAL : public simple_ipa_opt_pass
{
public:
pass_ipa_free_inline_summary (gcc::context *ctxt)
@@ -866,8 +864,6 @@ public:
}; // class pass_ipa_free_inline_summary
-} // anon namespace
-
simple_ipa_opt_pass *
make_pass_ipa_free_inline_summary (gcc::context *ctxt)
{
@@ -1164,9 +1160,7 @@ ipa_cdtor_merge (void)
return 0;
}
-namespace {
-
-const pass_data pass_data_ipa_cdtor_merge =
+static const pass_data pass_data_ipa_cdtor_merge =
{
IPA_PASS, /* type */
"cdtor", /* name */
@@ -1179,7 +1173,7 @@ const pass_data pass_data_ipa_cdtor_merge =
0, /* todo_flags_finish */
};
-class pass_ipa_cdtor_merge : public ipa_opt_pass_d
+class pass_ipa_cdtor_merge GCC_FINAL : public ipa_opt_pass_d
{
public:
pass_ipa_cdtor_merge (gcc::context *ctxt)
@@ -1210,8 +1204,6 @@ pass_ipa_cdtor_merge::gate (function *)
return !targetm.have_ctors_dtors || (optimize && in_lto_p);
}
-} // anon namespace
-
ipa_opt_pass_d *
make_pass_ipa_cdtor_merge (gcc::context *ctxt)
{
@@ -1388,9 +1380,7 @@ ipa_single_use (void)
return 0;
}
-namespace {
-
-const pass_data pass_data_ipa_single_use =
+static const pass_data pass_data_ipa_single_use =
{
IPA_PASS, /* type */
"single-use", /* name */
@@ -1403,7 +1393,7 @@ const pass_data pass_data_ipa_single_use =
0, /* todo_flags_finish */
};
-class pass_ipa_single_use : public ipa_opt_pass_d
+class pass_ipa_single_use GCC_FINAL : public ipa_opt_pass_d
{
public:
pass_ipa_single_use (gcc::context *ctxt)
@@ -1431,8 +1421,6 @@ pass_ipa_single_use::gate (function *)
return optimize;
}
-} // anon namespace
-
ipa_opt_pass_d *
make_pass_ipa_single_use (gcc::context *ctxt)
{