From 364a869bf583ffeaf0c2ec8963d472469ba83687 Mon Sep 17 00:00:00 2001 From: dnovillo Date: Tue, 11 Sep 2012 15:33:51 +0000 Subject: [PATCH] 2012-09-11 Dominique Dhumieres * config/darwin.c (darwin_asm_named_section): Adjust for VEC changes. (darwin_asm_dwarf_section): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@191192 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 6 ++++++ gcc/config/darwin.c | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index afceaf7..1317c51 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2012-09-11 Dominique Dhumieres + + * config/darwin.c (darwin_asm_named_section): Adjust for + VEC changes. + (darwin_asm_dwarf_section): Likewise. + 2012-09-11 Martin Jambor * dwarf2out.c (dwarf2out_abstract_function): Do not change cfun. diff --git a/gcc/config/darwin.c b/gcc/config/darwin.c index 33a831f..54c92d1 100644 --- a/gcc/config/darwin.c +++ b/gcc/config/darwin.c @@ -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); } } -- 2.7.4