From: Elena Zannoni <ezannoni@redhat.com>
To: Elena Zannoni <ezannoni@redhat.com>
Cc: gdb-patches@sources.redhat.com
Subject: Re: [RFA] valops.c: don't coerce vectors.
Date: Thu, 02 May 2002 12:04:00 -0000 [thread overview]
Message-ID: <15569.36031.696957.947763@localhost.redhat.com> (raw)
In-Reply-To: <15565.48976.671016.923393@localhost.redhat.com>
Elena Zannoni writes:
>
> I hope this is the last of the AltiVec series.
>
> Elena
>
> 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
>
> * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
> we are dealing with vectors.
>
>
I committed this, given that the file seems unmaintained.
Elena
> Index: valops.c
> ===================================================================
> RCS file: /cvs/uberbaum/gdb/valops.c,v
> retrieving revision 1.55
> diff -u -p -r1.55 valops.c
> --- valops.c 26 Apr 2002 03:37:42 -0000 1.55
> +++ valops.c 29 Apr 2002 21:45:55 -0000
> @@ -1190,8 +1190,12 @@ value_arg_coerce (struct value *arg, str
> type = lookup_pointer_type (type);
> break;
> case TYPE_CODE_ARRAY:
> + /* Arrays are coerced to pointers to their first element, unless
> + they are vectors, in which case we want to leave them alone,
> + because they are passed by value. */
> if (current_language->c_style_arrays)
> - type = lookup_pointer_type (TYPE_TARGET_TYPE (type));
> + if (!TYPE_VECTOR (type))
> + type = lookup_pointer_type (TYPE_TARGET_TYPE (type));
> break;
> case TYPE_CODE_UNDEF:
> case TYPE_CODE_PTR:
next prev parent reply other threads:[~2002-05-02 19:04 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-04-29 14:47 Elena Zannoni
2002-05-02 12:04 ` Elena Zannoni [this message]
2002-05-02 12:08 ` Daniel Jacobowitz
2002-05-02 12:19 ` Elena Zannoni
2002-05-02 14:45 ` Michael Snyder
2002-05-02 17:36 ` Elena Zannoni
2002-05-02 17:51 ` Michael Snyder
2002-05-02 18:00 ` Elena Zannoni
2002-05-02 14:21 ` Michael Snyder
2002-05-02 18:12 Michael Elizabeth Chastain
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=15569.36031.696957.947763@localhost.redhat.com \
--to=ezannoni@redhat.com \
--cc=gdb-patches@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox