Patchwork Bootstrap fails (was: Remove unnecessary VEC function overloads.)

login
register
mail settings
Submitter Diego Novillo
Date Sept. 11, 2012, 3:34 p.m.
Message ID <504F5A1F.5080107@google.com>
Download mbox | patch
Permalink /patch/183139/
State New
Headers show

Comments

Diego Novillo - Sept. 11, 2012, 3:34 p.m.
On 2012-09-11 08:42 , Dominique Dhumieres wrote:
>> This is ok, of course.
>
> Then could you please commit it (I don't have write access)?

Done.  Rev 191192.


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.

  }

Patch

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);
      }