+2015-01-04 Uros Bizjak <ubizjak@gmail.com>
+
+ * gcc-interface/misc.c (internal_error_function): Use xasprintf instead
+ of unchecked asprintf.
+
2014-12-22 Eric Botcazou <ebotcazou@adacore.com>
* gcc-interface/trans.c (Attribute_to_gnu) <Attr_{Min,Max}>: If the
xloc = expand_location (input_location);
if (context->show_column && xloc.column != 0)
- asprintf (&loc, "%s:%d:%d", xloc.file, xloc.line, xloc.column);
+ loc = xasprintf ("%s:%d:%d", xloc.file, xloc.line, xloc.column);
else
- asprintf (&loc, "%s:%d", xloc.file, xloc.line);
+ loc = xasprintf ("%s:%d", xloc.file, xloc.line);
temp_loc.Low_Bound = 1;
temp_loc.High_Bound = strlen (loc);
sp_loc.Bounds = &temp_loc;