From patchwork Wed Sep 12 13:52:48 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Diego Novillo X-Patchwork-Id: 183377 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 C58CC2C0089 for ; Wed, 12 Sep 2012 23:53:20 +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=1348062801; h=Comment: DomainKey-Signature:Received:Received:Received:Received:Received: Received:Received:Received:Received:Date:From:To: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=/2OAH6j LW5yansmo6FcE7VQ7jOI=; b=OdLAExNblGGAmmyBD4MbTKDnkyf+w1K8nLso2I6 BCUYzNxBvAODeN3itszFuuZgL0Yc/LiDVN1t2YhheOEn08l7sFh+/2Xpp6Usu6CG IQMrtRloNDuktLLh42g4dyKhMWVsd740qy/6sECV7bqumWzyGTzYiAO0NqLX9hh9 w8T4= 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:X-Google-DKIM-Signature:Received:Received:Received:Received:Received:Date:From:To:Subject:Message-ID:MIME-Version:Content-Type:Content-Disposition:User-Agent:X-Gm-Message-State:X-IsSubscribed:Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender:Delivered-To; b=bM377Mj+/kmoXQFsIKnuRRJquGt3ufkvxUDSxNihfqnvaeDBqtxyOfqWw1NG4O jDM0GtEej46XHvvyExe2CYmdETFvlK/+UyucUAuImhoLTBhrWUsnsvdO0OqlRMSE R5M8OoASE/HCfDqrsTy8Tc3jNZvOLX4NpY8Wp179mVDoM=; Received: (qmail 4957 invoked by alias); 12 Sep 2012 13:53:07 -0000 Received: (qmail 4940 invoked by uid 22791); 12 Sep 2012 13:53:05 -0000 X-SWARE-Spam-Status: No, hits=-4.5 required=5.0 tests=AWL, BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, KHOP_RCVD_TRUST, RCVD_IN_DNSWL_LOW, RCVD_IN_HOSTKARMA_YE, RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mail-fa0-f73.google.com (HELO mail-fa0-f73.google.com) (209.85.161.73) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 12 Sep 2012 13:52:51 +0000 Received: by fapp1 with SMTP id p1so119853fap.2 for ; Wed, 12 Sep 2012 06:52:49 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=date:from:to:subject:message-id:mime-version:content-type :content-disposition:organization:user-agent:x-gm-message-state; bh=C6jkLcuyTIbfZ2KFb8U6PNe47FUVyj161C+2aQRb6g0=; b=lKtueuzD76N3oGgqDdXDY10Xpbo+moYWXjfvSpqupr/SvECoun/z/OFHUVSuqGPBM5 8tLx4WBvuEg7fAUcOLxL+wnfpXH6+xC1BSWMW4EiA1tUXgsPXT0H9PCGTC8+mNeqaexO a/ViYXogKWkBfIsvZV64hSPix/gAzU1Rr0PIqOxzB1km2a7zwOrVgk5miu8bhkK8C5GA 7KiTzAS7xWlUWVtcQm5CWTRZavFiRmbmu/eChS2f7ol5taYLHG9ry1wrmL3xndU+AVtW WXcPNdvULHfQx+n4lNTzvm3nqIx/WKMI/NJ9YtnZZ7dxxcCcglAUMP7BpdWXKm8+NwXA blag== Received: by 10.180.82.166 with SMTP id j6mr3820263wiy.1.1347457969848; Wed, 12 Sep 2012 06:52:49 -0700 (PDT) Received: by 10.180.82.166 with SMTP id j6mr3820259wiy.1.1347457969800; Wed, 12 Sep 2012 06:52:49 -0700 (PDT) Received: from hpza9.eem.corp.google.com ([74.125.121.33]) by gmr-mx.google.com with ESMTPS id e5si1097594wiw.0.2012.09.12.06.52.49 (version=TLSv1/SSLv3 cipher=AES128-SHA); Wed, 12 Sep 2012 06:52:49 -0700 (PDT) Received: from torture.tor.corp.google.com (torture.tor.corp.google.com [172.29.41.4]) by hpza9.eem.corp.google.com (Postfix) with ESMTP id 9398A5C0050 for ; Wed, 12 Sep 2012 06:52:49 -0700 (PDT) Received: by torture.tor.corp.google.com (Postfix, from userid 54752) id DB541C085D; Wed, 12 Sep 2012 09:52:48 -0400 (EDT) Date: Wed, 12 Sep 2012 09:52:48 -0400 From: Diego Novillo To: gcc-patches@gcc.gnu.org Subject: Remove obsolete compatibility notes in vec.h Message-ID: <20120912135248.GA28249@google.com> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) X-Gm-Message-State: ALoCoQk+8nTRfulOhXbl0Ob7VULJ6lzNNVfy732Dvw3zDO8soVN3B1AXkxKWg8L/KB6QqZvm6UmTQAK57qdHR+CJ21A6RtXwfx1OQpJ3tEwKqzu/hXFFSNsJxuy2Zqodig+AxeEMlpfVaNmjsXNewDV3Gz6IxHohy0lMHh+VfOPYU8xQJiaAVqnAVmcWIDwow5CqmZFMxvGYP6HuQNJp7w5HCupuTSynINjQLo7hRPa7p591KaqyD5A= X-IsSubscribed: yes 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 Committed to trunk. * vec.h: Remove compatibility notes for previous distinction between vectors of objects and vectors of pointers. diff --git a/gcc/vec.h b/gcc/vec.h index 88891d7..8858f6a 100644 --- a/gcc/vec.h +++ b/gcc/vec.h @@ -31,23 +31,6 @@ along with GCC; see the file COPYING3. If not see sometimes backed by out-of-line generic functions. The vectors are designed to interoperate with the GTY machinery. - FIXME - Remove the following compatibility notes after a handler - class for vec_t is implemented. - - To preserve compatibility with the existing API, some functions - that manipulate vector elements implement two overloads: one taking - a pointer to the element and others that take a pointer to a - pointer to the element. - - This used to be implemented with three different families of macros - and structures: structure objects, scalar objects and of pointers. - Both the structure object and pointer variants passed pointers to - objects around -- in the former case the pointers were stored into - the vector and in the latter case the pointers were dereferenced and - the objects copied into the vector. The scalar object variant was - suitable for int-like objects, and the vector elements were returned - by value. - There are both 'index' and 'iterate' accessors. The index accessor is implemented by operator[]. The iterator returns a boolean iteration condition and updates the iteration variable passed by @@ -124,7 +107,6 @@ along with GCC; see the file COPYING3. If not see VEC_safe_push(tree,gc,s->v,decl); // append some decl onto the end for (ix = 0; VEC_iterate(tree,s->v,ix,elt); ix++) { do something with elt } - */ #if ENABLE_CHECKING