Commit ba882ba2 by Dominique d'Humieres Committed by Diego Novillo

darwin.c (darwin_asm_named_section): Adjust for VEC changes.

2012-09-11  Dominique Dhumieres  <dominiq@lps.ens.fr>

	* config/darwin.c (darwin_asm_named_section): Adjust for
	VEC changes.
	(darwin_asm_dwarf_section): Likewise.

From-SVN: r191192
parent 635442bf
2012-09-11 Dominique Dhumieres <dominiq@lps.ens.fr>
* config/darwin.c (darwin_asm_named_section): Adjust for
VEC changes.
(darwin_asm_dwarf_section): Likewise.
2012-09-11 Martin Jambor <mjambor@suse.cz>
* dwarf2out.c (dwarf2out_abstract_function): Do not change cfun.
......
......@@ -1878,7 +1878,7 @@ darwin_asm_named_section (const char *name,
the assumption of how this is done. */
if (lto_section_names == NULL)
lto_section_names = VEC_alloc (darwin_lto_section_e, gc, 16);
VEC_safe_push (darwin_lto_section_e, gc, lto_section_names, &e);
VEC_safe_push (darwin_lto_section_e, gc, lto_section_names, e);
}
else if (strncmp (name, "__DWARF,", 8) == 0)
darwin_asm_dwarf_section (name, flags, decl);
......@@ -2698,7 +2698,7 @@ darwin_asm_dwarf_section (const char *name, unsigned int flags,
fprintf (asm_out_file, "Lsection%.*s:\n", namelen, sname);
e.count = 1;
e.name = xstrdup (sname);
VEC_safe_push (dwarf_sect_used_entry, gc, dwarf_sect_names_table, &e);
VEC_safe_push (dwarf_sect_used_entry, gc, dwarf_sect_names_table, e);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment