re PR target/35795 (Revision 133787 breaks ia64)
authorJan Hubicka <jh@suse.cz>
Thu, 3 Apr 2008 12:49:27 +0000 (05:49 -0700)
committerH.J. Lu <hjl@gcc.gnu.org>
Thu, 3 Apr 2008 12:49:27 +0000 (05:49 -0700)
2008-04-03  Jan Hubicka  <jh@suse.cz>

PR tree-optimization/35795
* alpha/alpha.c (alpha_output_mi_thunk_osf): Free after compilation.
* sparc/sparc.c (sparc_output_mi_thunk): Likewise.
* ia64/ia64.c (ia64_output_mi_thunk): Likewise.
* m68k/m68k.c (m68k_output_mi_thunk): Likewise.
* score/score3.c (score3_output_mi_thunk): Likewise.
* score/score7.c (score7_output_mi_thunk): Likewise.
* mips/mips.c (mips_output_mi_thunk): Likewise.

From-SVN: r133868

gcc/ChangeLog
gcc/config/alpha/alpha.c
gcc/config/ia64/ia64.c
gcc/config/m68k/m68k.c
gcc/config/mips/mips.c
gcc/config/score/score3.c
gcc/config/score/score7.c
gcc/config/sparc/sparc.c

index 321dfb04d0f447c7f662674f7dcf3ce1c663a341..126309259da4bb777152a734f4db78a8fbb20fb1 100644 (file)
@@ -1,3 +1,14 @@
+2008-04-03  Jan Hubicka  <jh@suse.cz>
+
+       PR tree-optimization/35795
+       * alpha/alpha.c (alpha_output_mi_thunk_osf): Free after compilation.
+       * sparc/sparc.c (sparc_output_mi_thunk): Likewise.
+       * ia64/ia64.c (ia64_output_mi_thunk): Likewise.
+       * m68k/m68k.c (m68k_output_mi_thunk): Likewise.
+       * score/score3.c (score3_output_mi_thunk): Likewise.
+       * score/score7.c (score7_output_mi_thunk): Likewise.
+       * mips/mips.c (mips_output_mi_thunk): Likewise.
+
 2008-04-03  Richard Guenther  <rguenther@suse.de>
 
        * tree-vrp.c (extract_range_from_unary_expr): Handle all
 
 2008-04-03  Paolo Bonzini  <bonzini@gnu.org>
 
-        * tree-inline.c (copy_generic_body, copy_decl_no_change): Export.
-        (remap_block): Call id->transform_lang_insert_block instead
-        of langhook.
-        (optimize_inline_calls, unsave_expr_now, tree_function_versioning):
-        Set id.transform_lang_insert_block to NULL.
-        (clone_body): Move to cp/optimize.c
-        * tree-inline.h (struct copy_body_data): Change
-        transform_lang_insert_block to function pointer.
-        (copy_generic_body, copy_decl_no_change): Export.
-        * langhooks.h (struct lang_hooks_for_decls): Kill insert_block.
-        * langhooks-def.h (LANG_HOOKS_INSERT_BLOCK): Kill.
-        (LANG_HOOKS_DECLS): Remove LANG_HOOKS_INSERT_BLOCK.
-
-        * c-tree.h (insert_block): Kill.
-        * c-decl.c (insert_block): Kill.
+       * tree-inline.c (copy_generic_body, copy_decl_no_change): Export.
+       (remap_block): Call id->transform_lang_insert_block instead
+       of langhook.
+       (optimize_inline_calls, unsave_expr_now, tree_function_versioning):
+       Set id.transform_lang_insert_block to NULL.
+       (clone_body): Move to cp/optimize.c
+       * tree-inline.h (struct copy_body_data): Change
+       transform_lang_insert_block to function pointer.
+       (copy_generic_body, copy_decl_no_change): Export.
+       * langhooks.h (struct lang_hooks_for_decls): Kill insert_block.
+       * langhooks-def.h (LANG_HOOKS_INSERT_BLOCK): Kill.
+       (LANG_HOOKS_DECLS): Remove LANG_HOOKS_INSERT_BLOCK.
+
+       * c-tree.h (insert_block): Kill.
+       * c-decl.c (insert_block): Kill.
 
 2008-04-03  Paolo Bonzini  <bonzini@gnu.org>
 
-        * c-objc-common.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
-        LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
-        * c-tree.h (c_push_function_context, c_pop_function_context): Remove
-        argument.
-        * c-decl.c (c_push_function_context, c_pop_function_context): Remove
-        argument, call {push,pop}_function_context from here.
-        * c-parser.c: Use c_{push,pop}_function_context.
-
-        * function.c (push_function_context_to): Move meat ...
-        (push_function_context): ... here.  Simplify.
-        * function.c (pop_function_context_from): Move meat ...
-        (pop_function_context): ... here.  Simplify.
-        * langhooks.h (struct lang_hooks_for_functions): Remove enter_nested,
-        leave_nested).
-        * langhooks-def.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
-        LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
-        (LANG_HOOKS_FUNCTION_INITIALIZER): Delete them from here.
-        * tree.h (push_function_context_to, pop_function_context_from): Remove.
+       * c-objc-common.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
+       LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
+       * c-tree.h (c_push_function_context, c_pop_function_context): Remove
+       argument.
+       * c-decl.c (c_push_function_context, c_pop_function_context): Remove
+       argument, call {push,pop}_function_context from here.
+       * c-parser.c: Use c_{push,pop}_function_context.
+
+       * function.c (push_function_context_to): Move meat ...
+       (push_function_context): ... here.  Simplify.
+       * function.c (pop_function_context_from): Move meat ...
+       (pop_function_context): ... here.  Simplify.
+       * langhooks.h (struct lang_hooks_for_functions): Remove enter_nested,
+       leave_nested).
+       * langhooks-def.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
+       LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
+       (LANG_HOOKS_FUNCTION_INITIALIZER): Delete them from here.
+       * tree.h (push_function_context_to, pop_function_context_from): Remove.
 
 2008-04-03  Ben Elliston  <bje@au.ibm.com>
 
index c5923a392fbf28c05b5d9efbbe350507160d1ffe..9e650b9ae144fbe116c852823319ba1806dbb90d 100644 (file)
@@ -8339,6 +8339,7 @@ alpha_output_mi_thunk_osf (FILE *file, tree thunk_fndecl ATTRIBUTE_UNUSED,
   final_start_function (insn, file, 1);
   final (insn, file, 1);
   final_end_function ();
+  free_after_compilation (cfun);
 }
 #endif /* TARGET_ABI_OSF */
 \f
index 270e83d3c3afb913eb994c4a926c24a58dc20065..ceda8833db38e900f12ff26318e0a257e2c59593 100644 (file)
@@ -9694,6 +9694,7 @@ ia64_output_mi_thunk (FILE *file, tree thunk ATTRIBUTE_UNUSED,
   final_start_function (insn, file, 1);
   final (insn, file, 1);
   final_end_function ();
+  free_after_compilation (cfun);
 
   reload_completed = 0;
   epilogue_completed = 0;
index 142c8aa959e5537880aa51e78681fea8ac8a05f1..6160237ede601d16615a971f6146c8e596e70a64 100644 (file)
@@ -4348,6 +4348,7 @@ m68k_output_mi_thunk (FILE *file, tree thunk ATTRIBUTE_UNUSED,
   /* Restore the original PIC register.  */
   if (flag_pic)
     SET_REGNO (pic_offset_table_rtx, PIC_REG);
+  free_after_compilation (cfun);
 }
 
 /* Worker function for TARGET_STRUCT_VALUE_RTX.  */
index da8b4aa4c961a0161bc2a505ca7adb7007e73305..861a308ab73d6cd6f14a07a7af0ab65df0022a94 100644 (file)
@@ -11685,6 +11685,7 @@ mips_output_mi_thunk (FILE *file, tree thunk_fndecl ATTRIBUTE_UNUSED,
   final_start_function (insn, file, 1);
   final (insn, file, 1);
   final_end_function ();
+  free_after_compilation (cfun);
 
   /* Clean up the vars set above.  Note that final_end_function resets
      the global pointer for us.  */
index f268cbaf2df2db0b19e4e9e98692a1f44ce7030e..592f5f5a1f798aa59592cb62194205b04f93c278 100644 (file)
@@ -382,6 +382,7 @@ score3_output_mi_thunk (FILE *file, tree thunk_fndecl ATTRIBUTE_UNUSED,
   final_start_function (insn, file, 1);
   final (insn, file, 1);
   final_end_function ();
+  free_after_compilation (cfun);
 
   /* Clean up the vars set above.  Note that final_end_function resets
      the global pointer for us.  */
index 34271cc36b29a1ac7b138c49901cb7d23205a592..3c16b0d6173c2d27842e4c86618b64db3049343c 100644 (file)
@@ -381,6 +381,7 @@ score7_output_mi_thunk (FILE *file, tree thunk_fndecl ATTRIBUTE_UNUSED,
   final_start_function (insn, file, 1);
   final (insn, file, 1);
   final_end_function ();
+  free_after_compilation (cfun);
 
   /* Clean up the vars set above.  Note that final_end_function resets
      the global pointer for us.  */
index c54dbb325ac562cc064793f3f43783375f343144..54c81b191f4cc35af5f0415db49d3028115682bd 100644 (file)
@@ -8818,6 +8818,7 @@ sparc_output_mi_thunk (FILE *file, tree thunk_fndecl ATTRIBUTE_UNUSED,
   final_start_function (insn, file, 1);
   final (insn, file, 1);
   final_end_function ();
+  free_after_compilation (cfun);
 
   reload_completed = 0;
   epilogue_completed = 0;