This is exactly the same thinko as that of rs6000:
  http://gcc.gnu.org/ml/gcc-patches/2011-03/msg01624.html
with the same fallout, i.e. assertion failure in gt_ggc_m_S.

Fixed thusly, tested on ia64-hpux, applied on the mainline as obvious.


2011-10-25  Eric Botcazou  <ebotca...@adacore.com>

        * config/ia64/ia64.c (ia64_profile_hook): Fix thinko.


-- 
Eric Botcazou
Index: config/ia64/ia64.c
===================================================================
--- config/ia64/ia64.c	(revision 180423)
+++ config/ia64/ia64.c	(working copy)
@@ -10716,7 +10716,7 @@ ia64_profile_hook (int labelno)
       char buf[30];
       const char *label_name;
       ASM_GENERATE_INTERNAL_LABEL (buf, "LP", labelno);
-      label_name = (*targetm.strip_name_encoding) (ggc_strdup (buf));
+      label_name = ggc_strdup ((*targetm.strip_name_encoding) (buf));
       label = gen_rtx_SYMBOL_REF (Pmode, label_name);
       SYMBOL_REF_FLAGS (label) = SYMBOL_FLAG_LOCAL;
     }

Reply via email to