Open shahab-vahedi opened 1 year ago
On the second thought, may be GDB handles this properly - GDB's generic logic treats shadow argument as a regular argument, so such a function wouldn't have a return value. That would explain why in the references STAR, long double complex works fine, unlike double complex. In any way, this should be checked and confirmed if this really works.
In the arc_push_dummy_call I see that struct case is handled, but it is not handled in the arc_extract_return_value.
kolesov
GDB testcase gdb.base/callfuncs.exp fails because it calls function that returns a double complex value, but GDB reads returned value in correctly. It seems that GDB doesn't properly implement ABI with regard of returns values > 2 words. OTOH, call of function that returns long double complex works fine.
kolesov