From 7620bc82f9bea7049364fd459c390c8c0369ee22 Mon Sep 17 00:00:00 2001 From: tbsaunde Date: Wed, 12 Aug 2015 20:09:33 +0000 Subject: 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 --- gcc/ubsan.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'gcc/ubsan.c') diff --git a/gcc/ubsan.c b/gcc/ubsan.c index e88c367cc99..7983c930c66 100644 --- a/gcc/ubsan.c +++ b/gcc/ubsan.c @@ -1896,7 +1896,9 @@ do_ubsan_in_current_function () DECL_ATTRIBUTES (current_function_decl))); } -static const pass_data pass_data_ubsan = +namespace { + +const pass_data pass_data_ubsan = { GIMPLE_PASS, /* type */ "ubsan", /* name */ @@ -1909,7 +1911,7 @@ static const pass_data pass_data_ubsan = TODO_update_ssa, /* todo_flags_finish */ }; -class pass_ubsan GCC_FINAL : public gimple_opt_pass +class pass_ubsan : public gimple_opt_pass { public: pass_ubsan (gcc::context *ctxt) @@ -1999,6 +2001,8 @@ pass_ubsan::execute (function *fun) return 0; } +} // anon namespace + gimple_opt_pass * make_pass_ubsan (gcc::context *ctxt) { -- cgit v1.2.1