This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[tree-profiling] Fix another inliner bug


Hi,
inliner thrown away the VAR_DECLs produced by gimplifier during
inlining.  This cause bootstrap failures on SuSE 9.2 systems after my
last merge.

Bootstrapped/regtestesd i686-pc-gnu-linux
Honza

2004-12-17  Jan Hubicka  <jh@suse.cz>
	* tree-inline.c (initialize_inlined_parameters): Do not throw away
	DECLs from BIND expr.
Index: tree-inline.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/tree-inline.c,v
retrieving revision 1.26.2.83.2.23
diff -c -3 -p -r1.26.2.83.2.23 tree-inline.c
*** tree-inline.c	16 Dec 2004 01:20:26 -0000	1.26.2.83.2.23
--- tree-inline.c	17 Dec 2004 16:32:00 -0000
*************** initialize_inlined_parameters (inline_da
*** 1315,1320 ****
--- 1315,1321 ----
    if (gimplify_init_stmts_p)
      {
        gimplify_body (&init_stmts, fn);
+       record_vars (BIND_EXPR_VARS (init_stmts));
        /* Remove BIND_EXPR added by gimplify_body.  */
        init_stmts = BIND_EXPR_BODY (init_stmts);
      }


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]