summaryrefslogtreecommitdiff
path: root/gcc/reorg.c
diff options
context:
space:
mode:
authortbsaunde <tbsaunde@138bc75d-0d04-0410-961f-82ee72b054a4>2015-08-12 20:09:33 +0000
committertbsaunde <tbsaunde@138bc75d-0d04-0410-961f-82ee72b054a4>2015-08-12 20:09:33 +0000
commit7620bc82f9bea7049364fd459c390c8c0369ee22 (patch)
tree0bb3e5e55fd46a2be97eff3a0c7917d317863f13 /gcc/reorg.c
parent8c6dc41cf72960678235a7a321c09e6211b6d595 (diff)
downloadgcc-7620bc82f9bea7049364fd459c390c8c0369ee22.tar.gz
Revert "replace several uses of the anon namespace with GCC_FINAL"
This reverts commit daa5a8a3cf9b04cd9af5544c61e12e6dca14f870. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@226834 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/reorg.c')
-rw-r--r--gcc/reorg.c16
1 files changed, 12 insertions, 4 deletions
diff --git a/gcc/reorg.c b/gcc/reorg.c
index 8b9c9d7d5ca..1c60e13167e 100644
--- a/gcc/reorg.c
+++ b/gcc/reorg.c
@@ -3940,7 +3940,9 @@ rest_of_handle_delay_slots (void)
return 0;
}
-static const pass_data pass_data_delay_slots =
+namespace {
+
+const pass_data pass_data_delay_slots =
{
RTL_PASS, /* type */
"dbr", /* name */
@@ -3953,7 +3955,7 @@ static const pass_data pass_data_delay_slots =
0, /* todo_flags_finish */
};
-class pass_delay_slots GCC_FINAL : public rtl_opt_pass
+class pass_delay_slots : public rtl_opt_pass
{
public:
pass_delay_slots (gcc::context *ctxt)
@@ -3980,6 +3982,8 @@ pass_delay_slots::gate (function *)
#endif
}
+} // anon namespace
+
rtl_opt_pass *
make_pass_delay_slots (gcc::context *ctxt)
{
@@ -3988,7 +3992,9 @@ make_pass_delay_slots (gcc::context *ctxt)
/* Machine dependent reorg pass. */
-static const pass_data pass_data_machine_reorg =
+namespace {
+
+const pass_data pass_data_machine_reorg =
{
RTL_PASS, /* type */
"mach", /* name */
@@ -4001,7 +4007,7 @@ static const pass_data pass_data_machine_reorg =
0, /* todo_flags_finish */
};
-class pass_machine_reorg GCC_FINAL : public rtl_opt_pass
+class pass_machine_reorg : public rtl_opt_pass
{
public:
pass_machine_reorg (gcc::context *ctxt)
@@ -4022,6 +4028,8 @@ public:
}; // class pass_machine_reorg
+} // anon namespace
+
rtl_opt_pass *
make_pass_machine_reorg (gcc::context *ctxt)
{