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]

Re: TREE_LIST, a new hope -- from oldlto branch


On 4 May 2010 16:03, Richard Guenther <richard.guenther@gmail.com> wrote:
> On Tue, May 4, 2010 at 3:54 PM, Manuel López-Ibáñez
> <lopezibanez@gmail.com> wrote:
>> On 4 May 2010 14:45, Steven Bosscher <stevenb.gcc@gmail.com> wrote:
>>> On Tue, May 4, 2010 at 2:13 PM, Michael Matz <matz@suse.de> wrote:
>>>> Hello,
>>>>
>>>> On Mon, 3 May 2010, Steven Bosscher wrote:
>>>>
>>>>> ? ? ? * gcc/stor-layout.c (pending_sizes): Change the type to
>>>>> ? ? ? VEC(tree,gc) *.
>>>>
>>>> If we're doing such cleanups (and I think they're nice), can we at the
>>>> same time introduce nicer syntax for commonly used vectors? ?I really hate
>>>> reading these "VEC(bla)" things, they are so non-C. ?For instance the
>>>> "VEC(tree,gc)*" type could be named "treegv" (and the heap variant
>>>> treehv). ?The accessor functions could then be treegv_iterate, and
>>>> treegv_safe_push and so on.
>>>
>>> I don't think that is any nicer, really. I'd rather keep it the way it is.
>>
>> Or propose a patch that uses the STL vectors, is anyone cooking that patch? ;-)
>
> Well, that requires us to build with C++ ...

Indeed. ;-)

Manuel.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]