* valops.c (value_cast): Cehck for cast to array type *before*
authorPer Bothner <per@bothner.com>
Sat, 4 Mar 1995 02:24:26 +0000 (02:24 +0000)
committerPer Bothner <per@bothner.com>
Sat, 4 Mar 1995 02:24:26 +0000 (02:24 +0000)
commitf7a69ed7951d7cc3d2a5d93ff2eb2aef91c9637b
tree624a92a9c31e061856a7939bb3269051f600185c
parent732ff6aff3a1d6c387de831ca3b520a11fb5ffa2
* valops.c (value_cast):  Cehck for cast to array type *before*
we coerce array to pointer (in case arg2 is already array).

* valops.c (call_function_by_hand):  Set using_gcc to 2 if using
gcc2.  Needed for REG_STRUCT_HAS_ADDR to work on sparc.
Also check REG_STRUCT_HAS_ADDR for union, array and string types.

* valops.c (call_function_by_hand):  Re-arrange code for pushing
paramaters on the stack so we can do better STACK_ALIGN.

* valops.c (call_function_by_hand):  Call error if the number
of arguments is fewer than parameter types in function type.
gdb/ChangeLog
gdb/valops.c