This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
On Fri, Jun 19, 2009 at 6:16 AM, Julian Brown<julian@codesourcery.com> wrote: > On Wed, 14 May 2008 17:17:29 -0700 > Andrew_Pinski@PlayStation.Sony.Com wrote: > >> This patch adds the subscripting for vector types. ÂI did not modify >> GCC's documentation for the vector extension because I am going to do >> a rewrite of that section because it seems weak and needs some help. >> >> Trevor wrote the initialize part of the patch, I cleaned it up and >> fixed a couple of issues related to addressing and templates and >> added the testcases (11 in total). > > What's the status of this patch? (I'm considering doing some work in > this area soon.) Here is patch with the documentation, I did not change it that major, just added a sentence documenting what subscripting on an vector type means. OK? Bootstrapped and tested on i686-linux-gnu. ChangeLog: * c-typeck.c (mark_addressable_vector): New function. (build_array_ref): Allow subscripting of vector types. * doc/extend.texi (Vector Extensions): Document subscripting on vector types. cp/ChangeLog: * typeck.c (mark_addressable_vector): New function. (build_array_ref): Allow vector[index]. * decl2.c (mark_addressable_vector): New function. (grok_array_decl): Allow subscripting of vector types. testsuite/ChangeLog: * gcc.c-torture/execute/vector-subscript-2.c: New test. * gcc.c-torture/execute/vector-subscript-1.c: New test. * gcc.dg/vector-subscript-2.c: New test. * gcc.dg/vector-subscript-1.c: New test. * g++.dg/ext/vector-subscript-0.C: New test. * g++.dg/ext/vector-subscript-1.C: New test. * g++.dg/ext/vector-subscript-2.C: New test. * g++.dg/torture/vector-subscript-1.C: New test. * g++.dg/torture/vector-subscript-2.C: New test. * g++.dg/torture/vector-subscript-3.C: New test. * g++.dg/torture/vector-subscript-4.C: New test. * gcc.dg/array-8.c: Update error message about subscripting.
Attachment:
addvectorsubscript.diff.txt
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |