https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60336
--- Comment #25 from H.J. Lu <hjl.tools at gmail dot com> --- (In reply to Andrew Pinski from comment #23) > (In reply to H.J. Lu from comment #22) > > This is a target independent issue. Clang++ skips empty struct argument > > and g++ passes it. Skip empty struct argument requires middle-end changes. > > Except in c++, the struct is non zero in size. I think empty struct should be considered as zero size for argument passing, like clang does. This bug causes PR 67239.