re PR rtl-optimization/50001 ([alpha]: ICE in reload_combine_note_use, at postreload...
authorUros Bizjak <uros@gcc.gnu.org>
Sat, 6 Aug 2011 18:39:19 +0000 (20:39 +0200)
committerUros Bizjak <uros@gcc.gnu.org>
Sat, 6 Aug 2011 18:39:19 +0000 (20:39 +0200)
PR target/50001
* config/alpha/alpha.c (alpha_instantiate_decls): New function.
(TARGET_INSTANTIATE_DECLS): New define.

From-SVN: r177531

gcc/ChangeLog
gcc/config/alpha/alpha.c

index 6c3143fed90ddfa87a626457bde64ae1a7ba27a7..7389883248e3323455881028b1b111ef5b859823 100644 (file)
@@ -1,9 +1,15 @@
+2011-08-06  Uros Bizjak  <ubizjak@gmail.com>
+
+       PR target/50001
+       * config/alpha/alpha.c (alpha_instantiate_decls): New function.
+       (TARGET_INSTANTIATE_DECLS): New define.
+
 2011-08-06  Paolo Bonzini  <bonzini@gnu.org>
             Mikael Morin   <mikael.morin@sfr.fr>
 
        * Makefile.in (INCLUDES_FOR_TARGET): New.
        (LIBGCC2_CFLAGS): Use it.
-       (CRTSTUFF_CFLAGS): Use it instead of INCLUDES. 
+       (CRTSTUFF_CFLAGS): Use it instead of INCLUDES.
 
 2011-08-06  Uros Bizjak  <ubizjak@gmail.com>
 
index e390075f102daaf8d26e3518228e218e328c89ce..a8a96075ee76385a4966e257cf46f9485a67cee4 100644 (file)
@@ -4632,6 +4632,13 @@ alpha_gp_save_rtx (void)
   return m;
 }
 
+static void
+alpha_instantiate_decls (void)
+{
+  if (cfun->machine->gp_save_rtx != NULL_RTX)
+    instantiate_decl_rtl (cfun->machine->gp_save_rtx);
+}
+
 static int
 alpha_ra_ever_killed (void)
 {
@@ -9811,6 +9818,9 @@ alpha_conditional_register_usage (void)
 #undef TARGET_TRAMPOLINE_INIT
 #define TARGET_TRAMPOLINE_INIT alpha_trampoline_init
 
+#undef TARGET_INSTANTIATE_DECLS
+#define TARGET_INSTANTIATE_DECLS alpha_instantiate_decls
+
 #undef TARGET_SECONDARY_RELOAD
 #define TARGET_SECONDARY_RELOAD alpha_secondary_reload