diff mbox

fix bootstrap on darwin to adapt to VEC changes

Message ID 20120911145503.GA25727@bromo.med.uc.edu
State New
Headers show

Commit Message

Jack Howarth Sept. 11, 2012, 2:55 p.m. UTC
The attached patch fixes the bootstrap on darwin to cope with the
VEC changes to remove unnecessary VEC function overloads. Tested on
x86_64-apple-darwin12. Okay for gcc trunk.
           Jack

2012-09-11  Dominique d'Humieres  <dominiq@lps.ens.fr>
	    Jack Howarth  <howarth@bromo.med.uc.edu>

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

Comments

Mike Stump Sept. 14, 2012, 5:21 p.m. UTC | #1
On Sep 11, 2012, at 7:55 AM, Jack Howarth <howarth@bromo.med.uc.edu> wrote:
> The attached patch fixes the bootstrap on darwin to cope with the
> VEC changes to remove unnecessary VEC function overloads. Tested on
> x86_64-apple-darwin12. Okay for gcc trunk.

Ok.
diff mbox

Patch

Index: gcc/config/darwin.c
===================================================================
--- gcc/config/darwin.c	(revision 191179)
+++ gcc/config/darwin.c	(working copy)
@@ -1878,7 +1878,7 @@  darwin_asm_named_section (const char *na
          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 *na
       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);
     }
 }