+1999-09-14 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
+
+ * lex.c (cp_pragma_interface, cp_pragma_implementation): Copy
+ filenames with ggc_alloc_string.
+
1999-09-14 Mark Mitchell <mark@codesourcery.com>
* decl.c (build_target_expr): Set TREE_SIDE_EFFECTS on the
/* Get default. */
impl_file_chain
= (struct impl_files *) xmalloc (sizeof (struct impl_files));
- impl_file_chain->filename = filename;
+ impl_file_chain->filename = ggc_alloc_string (filename, -1);
impl_file_chain->next = 0;
#endif
}
if (ifiles == 0)
{
ifiles = (struct impl_files*) xmalloc (sizeof (struct impl_files));
- ifiles->filename = main_filename;
+ ifiles->filename = ggc_alloc_string (main_filename, -1);
ifiles->next = impl_file_chain;
impl_file_chain = ifiles;
}
|| ! strcmp (main_filename, input_filename))
{
impl_file_chain = (struct impl_files*) xmalloc (sizeof (struct impl_files));
- impl_file_chain->filename = main_filename;
+ impl_file_chain->filename = ggc_alloc_string (main_filename, -1);
impl_file_chain->next = 0;
}
else