X-Git-Url: http://git.sourceforge.jp/view?a=blobdiff_plain;f=gcc%2Fipa-struct-reorg.c;h=bc84eee372b483fce4e0bd3670d78517c525f051;hb=81540bae22fbff1c51ccdb4952b0c7d1ab144c2c;hp=6468d77f06a4abec16dbe00a50958ce4eb828044;hpb=ccf4ab6ba79565bf35426a5aad3140e6354e0121;p=pf3gnuchains%2Fgcc-fork.git diff --git a/gcc/ipa-struct-reorg.c b/gcc/ipa-struct-reorg.c index 6468d77f06a..bc84eee372b 100644 --- a/gcc/ipa-struct-reorg.c +++ b/gcc/ipa-struct-reorg.c @@ -658,7 +658,7 @@ make_edge_and_fix_phis_of_dest (basic_block bb, edge e) { gimple phi = gsi_stmt (si); arg = PHI_ARG_DEF_FROM_EDGE (phi, e); - add_phi_arg (phi, arg, new_e); + add_phi_arg (phi, arg, new_e, gimple_phi_arg_location_from_edge (phi, e)); } return new_e; @@ -2178,7 +2178,8 @@ create_new_var_1 (tree orig_decl, d_str str, new_var node) type = gen_struct_type (orig_decl, type); if (is_global_var (orig_decl)) - new_decl = build_decl (VAR_DECL, new_name, type); + new_decl = build_decl (DECL_SOURCE_LOCATION (orig_decl), + VAR_DECL, new_name, type); else { const char *name = new_name ? IDENTIFIER_POINTER (new_name) : NULL; @@ -3646,7 +3647,7 @@ do_reorg_1 (void) push_cfun (DECL_STRUCT_FUNCTION (node->decl)); current_function_decl = node->decl; if (dump_file) - fprintf (dump_file, "\nFunction to do reorg is %s: \n", + fprintf (dump_file, "\nFunction to do reorg is %s: \n", (const char *) IDENTIFIER_POINTER (DECL_NAME (node->decl))); do_reorg_for_func (node); free_dominance_info (CDI_DOMINATORS);