[Bug target/89545] ABI clarification for over-aligned type stack passing

hjl.tools at gmail dot com gcc-bugzilla@gcc.gnu.org
Fri Mar 1 13:43:00 GMT 2019


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

--- Comment #4 from H.J. Lu <hjl.tools at gmail dot com> ---
(In reply to Michael Matz from comment #2)
> I think we should say something about the addresses of stack slots
> individual overaligned arguments as well (i.e. that the slot itself will
> also be aligned
> accordingly), not just for the overall effect.

How about

diff --git a/low-level-sys-info.tex b/low-level-sys-info.tex
index a1778fa..a1cf2e4 100644
--- a/low-level-sys-info.tex
+++ b/low-level-sys-info.tex
@@ -519,7 +519,7 @@ Once arguments are classified, the registers get assigned
(in
 left-to-right order) for passing as follows:

 \begin{enumerate}
-\item If the class is MEMORY, pass the argument on the stack.
+\item If the class is MEMORY, align and pass the argument on the stack.

 \item If the class is INTEGER, the next available register of the
   sequence \RDI, \RSI, \RDX, \RCX, \reg{r8} and \reg{r9} is


More information about the Gcc-bugs mailing list