From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23777 invoked by alias); 11 Sep 2012 11:35:04 -0000 Received: (qmail 23691 invoked by uid 22791); 11 Sep 2012 11:35:03 -0000 X-SWARE-Spam-Status: No, hits=-7.7 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,KHOP_THREADED,RCVD_IN_DNSWL_HI,RCVD_IN_HOSTKARMA_W,RP_MATCHES_RCVD,SPF_HELO_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 11 Sep 2012 11:34:47 +0000 Received: from int-mx12.intmail.prod.int.phx2.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q8BBYi2V022660 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 11 Sep 2012 07:34:45 -0400 Received: from [127.0.0.1] (ovpn01.gateway.prod.ext.ams2.redhat.com [10.39.146.11]) by int-mx12.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id q8BBYgeW025696; Tue, 11 Sep 2012 07:34:43 -0400 Message-ID: <504F21D2.9010105@redhat.com> Date: Tue, 11 Sep 2012 11:35:00 -0000 From: Pedro Alves User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:15.0) Gecko/20120828 Thunderbird/15.0 MIME-Version: 1.0 To: Andrew Burgess CC: "gdb-patches@sourceware.org" , Joel Brobecker , Tom Tromey Subject: Re: [rfc] display vector types using vector_size syntax References: <50448CC0.8060706@broadcom.com> <87627lerap.fsf@fleche.redhat.com> <20120910220620.GA3081@adacore.com> <504EFFE4.1090007@broadcom.com> In-Reply-To: <504EFFE4.1090007@broadcom.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2012-09/txt/msg00151.txt.bz2 On 09/11/2012 10:09 AM, Andrew Burgess wrote: > On 10/09/2012 11:06 PM, Joel Brobecker wrote: >>> Andrew> I'd like to change the behaviour to this: >>> Andrew> (gdb) ptype vector >>> Andrew> type = char ((vector_size(4))) >>> Andrew> (gdb) whatis vector >>> Andrew> type = char ((vector_size(4))) >>> >>> Seems reasonable to me. >> >> Just a thought: How about >> >> type = char __attribute__ ((vector_size(4))) >> >> ? >> >> It know it's a lot more verbose, but the later speaks a lot more >> to me than the original proposal... > > I only dropped this to avoid clutter, but I don't really mind either way. > > I'll give it a couple more days for people to reply, then commit a version with "__attibute__". +1 for __attribute__ being present from me. -- Pedro Alves