2001-11-15 Alan Matsuoka <alanm@redhat.com>
* gensupport.c process_include : Change call to alloca to
xmalloc.
From-SVN: r47062
+2001-11-15 Alan Matsuoka <alanm@redhat.com>
+
+ * gensupport.c process_include : Change call to alloca to
+ xmalloc.
+
2001-11-15 Aldy Hernandez <aldyh@redhat.com>
* config/rs6000/rs6000.md: Use spaces instead of tabs in output
const char *filename = XSTR (desc, 0);
char *pathname = NULL;
FILE *input_file;
- char *fname;
+ char *fname = NULL;
struct file_name_list *stackp;
int flen;
flen = strlen (filename);
- fname = (char *) alloca (max_include_len + flen + 2);
+ fname = (char *) xmalloc (max_include_len + flen + 2);
/* + 2 above for slash and terminating null. */
if (init_include_reader (input_file) == FATAL_EXIT_CODE)
message_with_line (lineno, "read errors found in include file %s\n", pathname);
+ if (fname)
+ free (fname);
return SUCCESS_EXIT_CODE;
}