On Mon, Jun 30, 2025 at 10:36 PM Jason Merrill <ja...@redhat.com> wrote: > > On 6/28/25 7:00 AM, H.J. Lu wrote: > > Since a backend may ignore user type alignment for arguments passed on > > stack, check backend for argument alignment on stack when evaluating > > __alignof. > > I assume that's reflected in DECL_ALIGN, so could we just add PARM_DECL to
No. targetm.calls.function_arg_boundary may have special handling for it. > > else if (VAR_OR_FUNCTION_DECL_P (expr)) > > t = size_int (DECL_ALIGN_UNIT (expr)); > > ? > > Jason > -- H.J.