diff options
Diffstat (limited to 'gcc/tree-nrv.c')
-rw-r--r-- | gcc/tree-nrv.c | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/gcc/tree-nrv.c b/gcc/tree-nrv.c index ef5ee67a2f3..7330d2896b5 100644 --- a/gcc/tree-nrv.c +++ b/gcc/tree-nrv.c @@ -221,8 +221,10 @@ tree_nrv (void) return 0; } -struct tree_opt_pass pass_nrv = +struct gimple_opt_pass pass_nrv = { + { + GIMPLE_PASS, "nrv", /* name */ NULL, /* gate */ tree_nrv, /* execute */ @@ -234,8 +236,8 @@ struct tree_opt_pass pass_nrv = 0, /* properties_provided */ 0, /* properties_destroyed */ 0, /* todo_flags_start */ - TODO_dump_func | TODO_ggc_collect, /* todo_flags_finish */ - 0 /* letter */ + TODO_dump_func | TODO_ggc_collect /* todo_flags_finish */ + } }; /* Determine (pessimistically) whether DEST is available for NRV @@ -312,8 +314,10 @@ execute_return_slot_opt (void) return 0; } -struct tree_opt_pass pass_return_slot = +struct gimple_opt_pass pass_return_slot = { + { + GIMPLE_PASS, "retslot", /* name */ NULL, /* gate */ execute_return_slot_opt, /* execute */ @@ -325,6 +329,6 @@ struct tree_opt_pass pass_return_slot = 0, /* properties_provided */ 0, /* properties_destroyed */ 0, /* todo_flags_start */ - 0, /* todo_flags_finish */ - 0 /* letter */ + 0 /* todo_flags_finish */ + } }; |