OSDN Git Service

2010-04-30 Richard Guenther <rguenther@suse.de>
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 30 Apr 2010 13:23:25 +0000 (13:23 +0000)
committerMasaki Muranaka <monaka@monami-software.com>
Sun, 23 May 2010 04:55:47 +0000 (13:55 +0900)
PR lto/43946
* passes.c (init_optimization_passes): Move pass_ipa_free_lang_data
first after all lowering passes.

* gcc.dg/lto/20100430-1_0.c: New testcase.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@158935 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/passes.c
gcc/testsuite/ChangeLog

index 4d295e3..31be263 100644 (file)
@@ -1,3 +1,9 @@
+2010-04-30  Richard Guenther  <rguenther@suse.de>
+
+       PR lto/43946
+       * passes.c (init_optimization_passes): Move pass_ipa_free_lang_data
+       first after all lowering passes.
+
 2010-04-30  Steven Bosscher  <steven@gcc.gnu.org>
 
        * toplev.c: Include varray.h for statistics dumping.
index 7a5d16f..f482437 100644 (file)
@@ -748,6 +748,7 @@ init_optimization_passes (void)
 
   /* Interprocedural optimization passes.  */
   p = &all_small_ipa_passes;
+  NEXT_PASS (pass_ipa_free_lang_data);
   NEXT_PASS (pass_ipa_function_and_variable_visibility);
   NEXT_PASS (pass_ipa_early_inline);
     {
@@ -756,7 +757,6 @@ init_optimization_passes (void)
       NEXT_PASS (pass_inline_parameters);
       NEXT_PASS (pass_rebuild_cgraph_edges);
     }
-  NEXT_PASS (pass_ipa_free_lang_data);
   NEXT_PASS (pass_early_local_passes);
     {
       struct opt_pass **p = &pass_early_local_passes.pass.sub;
index 886e810..e4ff4a6 100644 (file)
@@ -1,3 +1,8 @@
+2010-04-30  Richard Guenther  <rguenther@suse.de>
+
+       PR lto/43946
+       * gcc.dg/lto/20100430-1_0.c: New testcase.
+
 2010-04-30  Jakub Jelinek  <jakub@redhat.com>
 
        PR debug/43942