From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11872 invoked by alias); 4 Nov 2010 18:59:03 -0000 Received: (qmail 11859 invoked by uid 22791); 4 Nov 2010 18:59:02 -0000 X-SWARE-Spam-Status: No, hits=-4.8 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from smtp-out.google.com (HELO smtp-out.google.com) (74.125.121.35) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 04 Nov 2010 18:58:58 +0000 Received: from wpaz17.hot.corp.google.com (wpaz17.hot.corp.google.com [172.24.198.81]) by smtp-out.google.com with ESMTP id oA4Iwt4Y006085 for ; Thu, 4 Nov 2010 11:58:55 -0700 Received: from pzk7 (pzk7.prod.google.com [10.243.19.135]) by wpaz17.hot.corp.google.com with ESMTP id oA4IwrOG010362 for ; Thu, 4 Nov 2010 11:58:54 -0700 Received: by pzk7 with SMTP id 7so314360pzk.1 for ; Thu, 04 Nov 2010 11:58:53 -0700 (PDT) Received: by 10.142.204.4 with SMTP id b4mr921057wfg.308.1288897132681; Thu, 04 Nov 2010 11:58:52 -0700 (PDT) Received: from coign.google.com ([216.239.45.130]) by mx.google.com with ESMTPS id p8sm320232wff.16.2010.11.04.11.58.50 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 04 Nov 2010 11:58:51 -0700 (PDT) From: Ian Lance Taylor To: Hariharan Sandanagobalane Cc: gcc-help@gcc.gnu.org Subject: Re: GCC vector extensions. References: <4CD2DBC3.9040809@picochip.com> Date: Thu, 04 Nov 2010 18:59:00 -0000 In-Reply-To: <4CD2DBC3.9040809@picochip.com> (Hariharan Sandanagobalane's message of "Thu, 04 Nov 2010 16:13:55 +0000") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-System-Of-Record: true X-IsSubscribed: yes Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2010-11/txt/msg00027.txt.bz2 Hariharan Sandanagobalane writes: > I have a feeling the website is wrong. If you went to > http://gcc.gnu.org/onlinedocs/gcc/Vector-Extensions.html, it claims > > "In C vectors can be subscripted as if the vector were an array with > the same number of elements and base type. Out of bound accesses > invoke undefined behavior at runtime. Warnings for out of bound > accesses for vector subscription can be enabled with -Warray-bounds. " > > I went through the gcc source code and the extend.texi does not have > this statement anymore. Why is that not reflected on the website? I see that statement in the current source code. I expect that you are looking at an older release. Vector subscripting was added quite recently and is not yet in any gcc release. When you read http://gcc.gnu.org/onlinedocs/gcc/ you are reading the docs for the current development release. If you look at http://gcc.gnu.org/onlinedocs/ you can select the documentation appropriate to the release you are using. If you started from that page, you are selecting the manual which follows a note "Some information may not be applicable to any existing release." Ian