aboutsummaryrefslogtreecommitdiff
path: root/gcc/genoutput.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/genoutput.c')
-rw-r--r--gcc/genoutput.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/genoutput.c b/gcc/genoutput.c
index be4fb00..3592388 100644
--- a/gcc/genoutput.c
+++ b/gcc/genoutput.c
@@ -1173,7 +1173,7 @@ note_constraint (rtx exp, int lineno)
return;
}
}
- new = xmalloc (sizeof (struct constraint_data) + namelen);
+ new = XNEWVAR (struct constraint_data, sizeof (struct constraint_data) + namelen);
strcpy ((char *)new + offsetof(struct constraint_data, name), name);
new->namelen = namelen;
new->lineno = lineno;