This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[ia64] Fix thinko in ia64_profile_hook
- From: Eric Botcazou <ebotcazou at adacore dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Tue, 25 Oct 2011 23:53:15 +0200
- Subject: [ia64] Fix thinko in ia64_profile_hook
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 <ebotcazou@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;
}