This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] s390: Fix infcalls passing a single-field struct with static members


>>>>> "Andreas" == Andreas Arnez <arnez@linux.ibm.com> writes:

Andreas> The infcall-nested-structs test case yields 36 FAILs on s390x because GCC
Andreas> and GDB disagree on how to pass a C++ struct like this as an argument to a
Andreas> function:

Andreas>   struct s { float x; static float y; };

Andreas> For the purpose of argument passing, GCC ignores static fields, while GDB
Andreas> does not.  Thus GCC passes the argument in a floating-point register and
Andreas> GDB passes it via memory.

Andreas> Fix this by explicitly ignoring static fields when detecting single-field
Andreas> structs.

FWIW this looked reasonable to me.

Tom


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]