Re: [PATCH] PR102024 - IBM Z: Add psabi diagnostics

2022-03-28 Thread Jakub Jelinek via Gcc-patches
On Fri, Mar 25, 2022 at 06:45:41PM +0100, Andreas Krebbel wrote: > gcc/ChangeLog: > PR target/102024 > * config/s390/s390-protos.h (s390_function_arg_vector): Remove > prototype. > * config/s390/s390.cc (s390_single_field_struct_p): New function. >

[PATCH] PR102024 - IBM Z: Add psabi diagnostics

2022-03-25 Thread Andreas Krebbel via Gcc-patches
For IBM Z in particular there is a problem with structs like: struct A { float a; int :0; }; Our ABI document allows passing a struct in an FPR only if it has exactly one member. On the other hand it says that structs of 1,2,4,8 bytes are passed in a GPR. So this struct is expected to be passed