aboutsummaryrefslogtreecommitdiff
path: root/gcc/reorg.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/reorg.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/reorg.c')
-rw-r--r--gcc/reorg.c16
1 files changed, 4 insertions, 12 deletions
diff --git a/gcc/reorg.c b/gcc/reorg.c
index 1c60e13..8b9c9d7 100644
--- a/gcc/reorg.c
+++ b/gcc/reorg.c
@@ -3940,9 +3940,7 @@ rest_of_handle_delay_slots (void)
return 0;
}
-namespace {
-
-const pass_data pass_data_delay_slots =
+static const pass_data pass_data_delay_slots =
{
RTL_PASS, /* type */
"dbr", /* name */
@@ -3955,7 +3953,7 @@ const pass_data pass_data_delay_slots =
0, /* todo_flags_finish */
};
-class pass_delay_slots : public rtl_opt_pass
+class pass_delay_slots GCC_FINAL : public rtl_opt_pass
{
public:
pass_delay_slots (gcc::context *ctxt)
@@ -3982,8 +3980,6 @@ pass_delay_slots::gate (function *)
#endif
}
-} // anon namespace
-
rtl_opt_pass *
make_pass_delay_slots (gcc::context *ctxt)
{
@@ -3992,9 +3988,7 @@ make_pass_delay_slots (gcc::context *ctxt)
/* Machine dependent reorg pass. */
-namespace {
-
-const pass_data pass_data_machine_reorg =
+static const pass_data pass_data_machine_reorg =
{
RTL_PASS, /* type */
"mach", /* name */
@@ -4007,7 +4001,7 @@ const pass_data pass_data_machine_reorg =
0, /* todo_flags_finish */
};
-class pass_machine_reorg : public rtl_opt_pass
+class pass_machine_reorg GCC_FINAL : public rtl_opt_pass
{
public:
pass_machine_reorg (gcc::context *ctxt)
@@ -4028,8 +4022,6 @@ public:
}; // class pass_machine_reorg
-} // anon namespace
-
rtl_opt_pass *
make_pass_machine_reorg (gcc::context *ctxt)
{