https://gcc.gnu.org/bugzilla/show_bug.cgi?id=128751

--- Comment #6 from Zhiyang Chen <jeffchen006 at gmail dot com> ---
Thanks, Uros, for the psABI analysis and the quick fix. Confirmed on trunk
r17-6489: the C and C++ tests from the description print 42 at -O0 and -O2.

Bisect: r8-4853-g974aedcce8d (PR60336, empty records get zero stack size)
is the first bad commit; its parent is good. That commit did not change the
stack-word count in function_arg_advance_64, which is what your fix adds.
So GCC 8 to 16 have the same caller/callee mismatch, in case you consider
the fix safe for the release branches.

Reply via email to