summaryrefslogtreecommitdiff
path: root/gcc/config/frv/frv.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/config/frv/frv.c')
-rw-r--r--gcc/config/frv/frv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/config/frv/frv.c b/gcc/config/frv/frv.c
index b4e3346fcce..11b3674fee8 100644
--- a/gcc/config/frv/frv.c
+++ b/gcc/config/frv/frv.c
@@ -748,7 +748,7 @@ frv_encode_section_info (decl)
if (is_small)
{
rtx sym_ref = XEXP (DECL_RTL (decl), 0);
- char * str = permalloc (2 + strlen (XSTR (sym_ref, 0)));
+ char * str = xmalloc (2 + strlen (XSTR (sym_ref, 0)));
str[0] = SDATA_FLAG_CHAR;
strcpy (&str[1], XSTR (sym_ref, 0));