From patchwork Tue Sep 11 14:55:03 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jack Howarth X-Patchwork-Id: 183127 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id 02AFF2C007D for ; Wed, 12 Sep 2012 00:55:24 +1000 (EST) Comment: DKIM? See http://www.dkim.org DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=gcc.gnu.org; s=default; x=1347980125; h=Comment: DomainKey-Signature:Received:Received:Received:Received:Received: Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition:User-Agent:Mailing-List:Precedence:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:Sender: Delivered-To; bh=yMVRB5BaknXC8TeTYS21iFkgw9k=; b=COOol4aV0jqQnvr esw2ThqCAO/j/61i0BkXUNYpykPTqTRqknYGz6iphPmgCBDCI+xW0enlG6UERy1o zP0B0Zh2N6o4M/FbZi48yvEFGYmr296r1F+dwMVk66JvG76tEbKzT/PAGzbEg8rg xnmRIAgFWPQ5caWmtBPq+q6OFNbI= Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=gcc.gnu.org; h=Received:Received:X-SWARE-Spam-Status:X-Spam-Check-By:Received:Received:Received:Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type:Content-Disposition:User-Agent:Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender:Delivered-To; b=Yen/2mbjO8iwICE2Bz6x57yu7SFQweOmd/7hgzdK8prEI8Xh3ZUSKfklVlATp1 uoyYakgSrIjK8jdPuZ5RjUfN69CheSwqswkD6HxQuQBmDNVkiJBBCyLZyEEhKNsi yjOn2qzqXgEx1mIdUiwslMUpCrODy6zt1rIO//8OKCnsU=; Received: (qmail 7653 invoked by alias); 11 Sep 2012 14:55:20 -0000 Received: (qmail 7642 invoked by uid 22791); 11 Sep 2012 14:55:18 -0000 X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL, BAYES_00, RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from bromo.med.uc.edu (HELO bromo.med.uc.edu) (129.137.3.146) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 11 Sep 2012 14:55:04 +0000 Received: from bromo.med.uc.edu (localhost.localdomain [127.0.0.1]) by bromo.med.uc.edu (Postfix) with ESMTP id 2F9DB400007; Tue, 11 Sep 2012 10:55:04 -0400 (EDT) Received: (from howarth@localhost) by bromo.med.uc.edu (8.14.3/8.14.3/Submit) id q8BEt3HB025729; Tue, 11 Sep 2012 10:55:03 -0400 Date: Tue, 11 Sep 2012 10:55:03 -0400 From: Jack Howarth To: gcc-patches@gcc.gnu.org Cc: dominiq@lps.ens.fr, mikestump@comcast.net, iain@codecodesourcery.com Subject: [PATCH] fix bootstrap on darwin to adapt to VEC changes Message-ID: <20120911145503.GA25727@bromo.med.uc.edu> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.18 (2008-05-17) Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org 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 Jack Howarth * config/darwin.c (darwin_asm_named_section): Adjust for VEC changes. (darwin_asm_dwarf_section): Likewise. 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); } }