forked from Imagelibrary/binutils-gdb
gdb/ChangeLog:* valops.c (value_assign): Do not call to value_coerce_to_target.(value_must_coerce_to_target): Return 0 in case of TYPE_VECTOR.gdb/testsuite/ChangeLog:* gdb.arch/altivec-abi.exp: New tests.
This commit is contained in:
@@ -1079,10 +1079,7 @@ value_assign (struct value *toval, struct value *fromval)
|
||||
|
||||
type = value_type (toval);
|
||||
if (VALUE_LVAL (toval) != lval_internalvar)
|
||||
{
|
||||
toval = value_coerce_to_target (toval);
|
||||
fromval = value_cast (type, fromval);
|
||||
}
|
||||
fromval = value_cast (type, fromval);
|
||||
else
|
||||
{
|
||||
/* Coerce arrays and functions to pointers, except for arrays
|
||||
@@ -1427,6 +1424,7 @@ value_must_coerce_to_target (struct value *val)
|
||||
switch (TYPE_CODE (valtype))
|
||||
{
|
||||
case TYPE_CODE_ARRAY:
|
||||
return TYPE_VECTOR (valtype) ? 0 : 1;
|
||||
case TYPE_CODE_STRING:
|
||||
return 1;
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user