From: Uros Bizjak Date: Sat, 6 Aug 2011 18:49:46 +0000 (+0200) Subject: re PR rtl-optimization/50001 ([alpha]: ICE in reload_combine_note_use, at postreload... X-Git-Tag: releases/gcc-4.5.4~493 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=34bb86aa45f614b406d805285e1e0ec23ce193bf;p=thirdparty%2Fgcc.git re PR rtl-optimization/50001 ([alpha]: ICE in reload_combine_note_use, at postreload.c:1538) PR target/50001 * config/alpha/alpha.c (alpha_instantiate_decls): New function. (TARGET_INSTANTIATE_DECLS): New define. From-SVN: r177534 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index f8d6a1764864..2800c2e48bd9 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2011-08-06 Uros Bizjak + + PR target/50001 + * config/alpha/alpha.c (alpha_instantiate_decls): New function. + (TARGET_INSTANTIATE_DECLS): New define. + 2011-08-01 Sebastien Bourdeauducq * gcc/config/lm32/t-lm32: fix multilib entry. diff --git a/gcc/config/alpha/alpha.c b/gcc/config/alpha/alpha.c index c9210c5a4c72..7ad20dcee0c9 100644 --- a/gcc/config/alpha/alpha.c +++ b/gcc/config/alpha/alpha.c @@ -4915,6 +4915,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) { @@ -11125,6 +11132,9 @@ alpha_init_libfuncs (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