Patchwork fix misleading description in vec.h

login
register
mail settings
Submitter Liang Wang
Date Sept. 27, 2011, 1:32 a.m.
Message ID <CAO+NnCbFZWY6gypBBdtE2UZRtq2_7fpB_-iR=r3HzSBR7K3dtA@mail.gmail.com>
Download mbox | patch
Permalink /patch/116529/
State New
Headers show

Comments

Liang Wang - Sept. 27, 2011, 1:32 a.m.
On Tue, Sep 27, 2011 at 9:27 AM, Liang Wang <netcasper@gmail.com> wrote:
> Hi,
>
> I find that the description from line 36, gcc/vec.h is wrong.  It
> should be the pointers in structure object variant are dereferenced
> and the objects copied into the vector.
>
> The following patch makes the *former* and *latter* in comment to
> point to the right thing.
>
> OK for trunk?
>
> By the way, I don't have write access to SVN repository yet.  Could
> you please help commit it after approval?
>
> Thanks,
> Liang.
>
> 2011-09-27  Liang Wang <netcasper@gmail.com>
>
>        * gcc/vec.h: Fix comment.
>
>
> diff --git a/gcc/vec.h b/gcc/vec.h
> index 789e8e2..46d9da4 100644
> --- a/gcc/vec.h
> +++ b/gcc/vec.h
> @@ -33,7 +33,7 @@ along with GCC; see the file COPYING3.  If not see
>
>    Because of the different behavior of structure objects, scalar
>    objects and of pointers, there are three flavors, one for each of
> -   these variants.  Both the structure object and pointer variants
> +   these variants.  Both the pointer and structure object variants
>    pass pointers to objects around -- in the former case the pointers
>    are stored into the vector and in the latter case the pointers are
>    dereferenced and the objects copied into the vector.  The scalar
>

Sorry.  I forget to attach files.

Patch

diff --git a/gcc/vec.h b/gcc/vec.h
index 789e8e2..46d9da4 100644
--- a/gcc/vec.h
+++ b/gcc/vec.h
@@ -33,7 +33,7 @@  along with GCC; see the file COPYING3.  If not see
 
    Because of the different behavior of structure objects, scalar
    objects and of pointers, there are three flavors, one for each of
-   these variants.  Both the structure object and pointer variants
+   these variants.  Both the pointer and structure object variants
    pass pointers to objects around -- in the former case the pointers
    are stored into the vector and in the latter case the pointers are
    dereferenced and the objects copied into the vector.  The scalar